diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 7091ba8..0744329 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -46,8 +46,13 @@ jobs: with: name: deploy_coverage path: coverage - - name: Archive Build to Releases - uses: ncipollo/release-action@v1 + - name: Get Tag Name + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Create release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} with: - artifacts: "dist/fsms-angular-pubsub/*" - token: ${{ secrets.GH_TOKEN }} + release_name: Release ${{ env.RELEASE_VERSION }} + tag_name: ${{ env.RELEASE_VERSION }} + body_path: CHANGELOG.md.md diff --git a/RELEASE_BODY.md b/RELEASE_BODY.md deleted file mode 100644 index 444f56e..0000000 --- a/RELEASE_BODY.md +++ /dev/null @@ -1,5 +0,0 @@ -# Changelog - -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. - -### [1.0.11](https://github.com/rupeshtiwari/fsms-angular-pubsub/compare/v1.0.10...v1.0.11) (2021-02-09) diff --git a/package.json b/package.json index f22c260..4d7c4a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fsms/angular-pubsub-app", - "version": "1.0.11", + "version": "1.0.12", "scripts": { "ng": "ng", "start": "ng serve", @@ -12,7 +12,7 @@ "build:ci": "npm run clean && npm run build:prod && npm run copyfiles", "test:ci": "ng test fsms-angular-pubsub --watch=false --browsers=ChromeHeadless --code-coverage=true", "copyfiles": "copyfiles -f README.md dist/fsms-angular-pubsub", - "release:git": "standard-version --release-as patch -i RELEASE_BODY.md && git add . package.json && git commit -m \"chore: bump version number\" && git push --follow-tags origin main", + "release:git": "standard-version --release-as patch && git add . package.json && git commit -m \"chore: bump version number\" && git push --follow-tags origin main", "release:npm": "npm run build:ci && npm publish dist/fsms-angular-pubsub", "release": "npm run release:git && npm run release:npm", "postinstall": "ngcc" diff --git a/projects/fsms-angular-pubsub/package.json b/projects/fsms-angular-pubsub/package.json index a30c54e..a76ef6c 100644 --- a/projects/fsms-angular-pubsub/package.json +++ b/projects/fsms-angular-pubsub/package.json @@ -1,6 +1,6 @@ { "name": "@fsms/angular-pubsub", - "version": "1.0.11", + "version": "1.0.12", "peerDependencies": { "@angular/common": "^10.1.6", "@angular/core": "^10.1.6"