Skip to content

Commit 37ef459

Browse files
committed
ci(release): add npm provenance generation support
1 parent 9ca9875 commit 37ef459

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
id-token: write
1011
pull-requests: write
1112

1213
jobs:
@@ -42,8 +43,4 @@ jobs:
4243

4344
- name: Publish
4445
if: ${{ steps.release.outputs.releases_created == 'true' }}
45-
run: |
46-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
47-
pnpm -r --no-git-checks publish
48-
env:
49-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
run: pnpm -r publish

0 commit comments

Comments
 (0)