We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2560d3 commit a8ce33eCopy full SHA for a8ce33e
.github/workflows/publish-to-npm.yaml
@@ -32,3 +32,15 @@ jobs:
32
run: npm publish --access public
33
env:
34
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