Fix npm publish command to work with OIDC

This commit is contained in:
MatiasManevi
2026-03-12 11:39:59 -03:00
parent df0bc58578
commit 8c3e70998d
2 changed files with 2 additions and 8 deletions
+1 -6
View File
@@ -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
}
+1 -2
View File
@@ -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