Skip to content

Commit

Permalink
upd: gh release command
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmittal23 committed Aug 21, 2023
1 parent 3b2b5e6 commit 965a083
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Extract Package Version
id: extract_version
run: echo ::set-output name=version::$(node -p "require('./package.json').version")

- name: Create GitHub Release
run: gh release create v${{ cat package.json | jq -r .version }} -F CHANGELOG.md
run: gh release create v${{ steps.extract_version.outputs.version }} -F CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 965a083

Please sign in to comment.