Skip to content

Commit 1f0d2c7

Browse files
committed
feat: add GitHub Release creation to publish workflow
1 parent 08e1b3f commit 1f0d2c7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish-node.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
required: true
88

99
permissions:
10-
contents: read
10+
contents: write
1111

1212
jobs:
1313
publish:
@@ -28,3 +28,8 @@ jobs:
2828
- run: pnpm publish --no-git-checks --access public
2929
env:
3030
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
32+
- name: Create GitHub Release
33+
run: gh release create "$GITHUB_REF_NAME" --generate-notes
34+
env:
35+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)