Merge pull request #3174 from MatiasManevi:fix-wasm-package

PiperOrigin-RevId: 882626629
Change-Id: Iecb61e39f3e994d7b64cec9492ae35e6a1194f9c
This commit is contained in:
Copybara-Service
2026-03-12 09:14:51 -07:00
2 changed files with 2 additions and 7 deletions
+1 -5
View File
@@ -221,14 +221,10 @@ 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