Cleanup wasm package script

This commit is contained in:
MatiasManevi
2026-03-02 15:20:44 -03:00
parent 7dd76bcbd7
commit 07fdf1f465
+4 -6
View File
@@ -233,15 +233,13 @@ build_test_wasm() {
package_wasm() {
echo "Publishing WASM bindings..."
cp wasm/package.npm.json wasm/dist/package.json
cp wasm/README.md wasm/dist/README.md || true
cp wasm/README.md wasm/dist/README.md
VERSION=${GITHUB_REF#refs/tags/}
npm --prefix wasm/dist version "${VERSION}" --no-git-tag-version
if [ -z "${NPM_TOKEN}" ]; then
echo "NPM_TOKEN is not set or is invalid; aborting publish"
exit 1
fi
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc
npm pack --dry-run ./wasm/dist
npm publish ./wasm/dist --access public
}