From 212ac6057172e93b0ba4f74a921f70bcc2d0e76c Mon Sep 17 00:00:00 2001 From: Abdellatif Ait Boudad Date: Sun, 13 Oct 2024 14:49:58 +0100 Subject: [PATCH] chore(release): 7.0.0 --- .config/publish.js | 2 +- .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++++++++ CHANGELOG.md | 8 +++++++ package-lock.json | 2 +- package.json | 7 +++--- 5 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.config/publish.js b/.config/publish.js index b6e31b1..8e7bfd9 100644 --- a/.config/publish.js +++ b/.config/publish.js @@ -4,5 +4,5 @@ const execSync = require('child_process').execSync, packages.map((package) => { const packagePath = `${__dirname}/../dist/@ngx-loading-bar/${package}`; - execSync(`cd ${packagePath} && npm publish`); + execSync(`cd ${packagePath} && npm publish --access public`); }); diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b60ed3c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + # Setup .npmrc file to publish to npm + registry-url: 'https://registry.npmjs.org' + node-version: 20 + cache: 'npm' + + - name: Install Dependencies + run: npm install + + - name: Build + run: npm run build + + - name: Test + run: npm run test + + - name: npm publish + run: npm run publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Github release + run: npm run github-release + env: + CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 28e733b..18a40b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [7.0.0](https://github.com/aitboudad/ngx-loading-bar/compare/v6.0.2...v7.0.0) (2024-10-13) + + +### Features + +* **core:** update to angular 16 ([b8f0992](https://github.com/aitboudad/ngx-loading-bar/commit/b8f099229c685124ea674d8f48ec680e61d0eb47)), closes [#202](https://github.com/aitboudad/ngx-loading-bar/issues/202) [#200](https://github.com/aitboudad/ngx-loading-bar/issues/200) +* **http:** remove depracated http headers ignoreLoadingBar ([c4aee89](https://github.com/aitboudad/ngx-loading-bar/commit/c4aee8937bdef1d8c897c700912a42912045a30b)), closes [#201](https://github.com/aitboudad/ngx-loading-bar/issues/201) + ### [6.0.2](https://github.com/aitboudad/ngx-loading-bar/compare/v6.0.1...v6.0.2) (2022-02-16) diff --git a/package-lock.json b/package-lock.json index 4615e10..3c02318 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@ngx-loading-bar/common", - "version": "6.0.2", + "version": "7.0.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 6d04646..3065c35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-loading-bar/common", - "version": "6.0.2", + "version": "7.0.0", "license": "MIT", "author": "Abdellatif Ait boudad", "description": "A fully automatic loading bar / progress bar with zero configuration for Angular app (http, http-client and router).", @@ -23,7 +23,8 @@ "lint:fix": "tslint --fix 'src/**/*.ts' 'demo/**/*.ts' -p tsconfig.json", "format": "prettier --list-different \"**/*.{js,ts,json,css,scss,md,html}\"", "format:fix": "prettier --write \"**/*.{js,ts,json,css,scss,md,html}\"", - "release": "standard-version && npm run build && node .config/publish.js", + "release": "standard-version", + "publish": "node .config/publish.js", "start": "ng serve --port 4501 --open", "build": "npm run build:core && npm run build:http-client && npm run build:router && node .config/build.js", "build:core": "ng build --configuration production @ngx-loading-bar/core", @@ -33,7 +34,7 @@ "test": "jest --coverage", "test:watch": "jest --watch", "bundlesize": "bundlesize", - "github-release": "conventional-github-releaser -p angular -t $GH_TOKEN --draft" + "github-release": "conventional-github-releaser -p angular --draft" }, "dependencies": { "@angular/animations": "^16.2.12",