Skip to content

Commit c8a28e6

Browse files
committed
ci: js: use trusted publisher instead of tokens
See https://docs.npmjs.com/trusted-publishers Signed-off-by: Tristram Gräbener <tristram+git@tristramg.eu>
1 parent 4506119 commit c8a28e6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/publish_npm.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12-
id-token: write
12+
id-token: write # Required for OIDC
1313
defaults:
1414
run:
1515
working-directory: ./wasm
@@ -18,10 +18,8 @@ jobs:
1818
# Setup .npmrc file to publish to npm
1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: '20.x'
22-
registry-url: 'https://registry.npmjs.org'
23-
scope: '@osrd-project'
21+
node-version: "20.x"
22+
registry-url: "https://registry.npmjs.org"
23+
scope: "@osrd-project"
2424
- run: npm ci
2525
- run: npm publish --provenance --access public
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)