mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
fix: npm publish provenance permissions (#48757)
Co-authored-by: Jiachi Liu <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Jiachi Liu
kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent
8460373c26
commit
b3afc46e1c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user