Cleanup readme and publish step

This commit is contained in:
MatiasManevi
2026-02-24 17:10:06 -03:00
parent c17eb431cb
commit bad7e29d3b
3 changed files with 5 additions and 7 deletions
+1 -4
View File
@@ -231,21 +231,18 @@ build_test_wasm() {
}
package_wasm() {
mkdir -p wasm/dist
echo "Publishing WASM bindings..."
cp wasm/package.npm.json wasm/dist/package.json
cp wasm/README.md wasm/dist/README.md || true
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
npm pack --dry-run ./wasm/dist
npm publish ./wasm/dist --access public
}
+1
View File
@@ -28,6 +28,7 @@ jobs:
- name: Build WASM bindings
run: bash ./.github/workflows/build_steps.sh build_test_wasm
- name: Package WASM bindings
env:
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}