Skip to content

Commit 81de967

Browse files
authored
use npm trusted publishing (#724)
1 parent 81c07f9 commit 81de967

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,16 @@ jobs:
171171
if: startsWith(github.ref, 'refs/tags/')
172172
needs: [build]
173173
runs-on: ubuntu-22.04
174+
permissions:
175+
contents: read
176+
id-token: write
174177
steps:
175178
- uses: actions/checkout@v4
176179
- uses: actions/setup-node@v3
177180
with:
178181
node-version: 16
179182
registry-url: https://registry.npmjs.org/
180183
- run: npm publish
181-
env:
182-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
183184

184185
publish-docker:
185186
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)