Unverified Commit b3afc46e authored by Steven's avatar Steven Committed by GitHub

fix: npm publish provenance permissions (#48757)

Co-authored-by: 's avatarJiachi Liu <inbox@huozhi.im>
Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 8460373c
......@@ -966,6 +966,9 @@ jobs:
- build
- build-wasm
- build-native
permissions:
contents: write
id-token: write
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
steps:
......@@ -997,6 +1000,7 @@ jobs:
name: wasm-binaries
path: packages/next-swc/crates/wasm
- run: npm i -g npm@9 # need latest version for provenance
- run: npm i -g pnpm@${PNPM_VERSION}
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: ./scripts/publish-native.js
......
provenance = true
save-exact = true
tag-version-prefix=""
strict-peer-dependencies = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment