Fix npm publish command to work with OIDC
This commit is contained in:
@@ -221,14 +221,9 @@ package_wasm() {
|
||||
echo "Publishing WASM bindings..."
|
||||
cp wasm/package.npm.json wasm/dist/package.json
|
||||
cp wasm/README.md wasm/dist/README.md
|
||||
|
||||
VERSION="${VERSION:-${GITHUB_REF#refs/tags/}}"
|
||||
npm --prefix wasm/dist version "${VERSION}" --no-git-tag-version
|
||||
|
||||
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
|
||||
|
||||
npm pack --dry-run ./wasm/dist
|
||||
npm publish ./wasm/dist --access public
|
||||
npm publish ./wasm/dist --access public --provenance
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
- name: Setup Node.js for WASM bindings
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version: '24.x'
|
||||
|
||||
- name: Prepare Linux
|
||||
run: bash ./.github/workflows/build_steps.sh prepare_linux
|
||||
@@ -46,6 +46,5 @@ jobs:
|
||||
|
||||
- name: Package WASM bindings
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
run: bash ./.github/workflows/build_steps.sh package_wasm
|
||||
|
||||
Reference in New Issue
Block a user