Skip to content

Commit 4462b50

Browse files
Activate npm trusted publishing
1 parent 95e931e commit 4462b50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ jobs:
9292
if: startsWith(github.ref, 'refs/tags/v')
9393

9494
runs-on: ubuntu-24.04
95+
permissions:
96+
contents: read
97+
id-token: write
9598

9699
steps:
97100
- name: Checkout
@@ -109,7 +112,5 @@ jobs:
109112
name: ${{ needs.build.outputs.artifact_filename }}
110113

111114
- name: Publish packages on npm with tag "next"
112-
env:
113-
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
114115
run: |
115116
npm publish ${{ needs.build.outputs.artifact_filename }} --tag next

0 commit comments

Comments
 (0)