There was an error while loading. Please reload this page.
2 parents 8752ac1 + 36c802d commit be50962Copy full SHA for be50962
1 file changed
.github/workflows/publish.yml
@@ -60,8 +60,8 @@ jobs:
60
permissions:
61
# Required to mint an OIDC token for npm provenance attestation.
62
id-token: write
63
- # Scoped down from the default (write) for least-privilege publishing.
64
- contents: read
+ # Required to create GitHub Releases.
+ contents: write
65
66
steps:
67
- uses: actions/checkout@v4
@@ -89,3 +89,8 @@ jobs:
89
npm publish
90
env:
91
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
92
+
93
+ - name: Create GitHub Release
94
+ env:
95
+ GH_TOKEN: ${{ github.token }}
96
+ run: gh release create "${{ github.ref_name }}" --title "v${{ github.ref_name }}" --generate-notes
0 commit comments