Skip to content

Commit a8ce33e

Browse files
Copilotmanan19
andcommitted
Add GitHub release creation to npm publish workflow
Co-authored-by: manan19 <[email protected]>
1 parent e2560d3 commit a8ce33e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish-to-npm.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,15 @@ jobs:
3232
run: npm publish --access public
3333
env:
3434
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
36+
- name: Extract version from package.json
37+
id: package-version
38+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
39+
40+
- name: Create GitHub Release
41+
run: |
42+
gh release create "v${{ steps.package-version.outputs.version }}" \
43+
--title "v${{ steps.package-version.outputs.version }}" \
44+
--generate-notes
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)