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 7cbbf8e commit d844284Copy full SHA for d844284
1 file changed
.github/workflows/publish.yml
@@ -28,7 +28,20 @@ jobs:
28
- name: Build package
29
run: npm run build
30
31
+ - name: Extract version
32
+ id: package-version
33
+ run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
34
+
35
- name: Publish to npm
36
run: npm publish --access public
37
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39
40
+ - name: Create GitHub Release
41
+ uses: softprops/action-gh-release@v1
42
+ with:
43
+ tag_name: v${{ steps.package-version.outputs.VERSION }}
44
+ name: Release v${{ steps.package-version.outputs.VERSION }}
45
+ generate_release_notes: true
46
+ env:
47
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments