Skip to content

Commit 7499e87

Browse files
committed
migrate to trusted publishing and gh cli for the release
1 parent 4da6a1c commit 7499e87

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,14 @@ jobs:
4646
git config user.email "github-actions[bot]@users.noreply.github.com"
4747
npm version ${{ inputs.version }}
4848
49+
# https://docs.npmjs.com/trusted-publishers
4950
- name: Publish to npm
50-
run: npm publish --provenance --access public
51-
env:
52-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
run: npm publish
5352

5453
- name: Push commit and tag
5554
run: git push origin main --follow-tags
5655

5756
- name: Create GitHub Release
58-
uses: actions/create-release@v1
57+
run: gh release create v${{ inputs.version }} --title "v${{ inputs.version }}" --generate-notes
5958
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
with:
62-
tag_name: v${{ inputs.version }}
63-
release_name: v${{ inputs.version }}
59+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)