From bf75813c438336444613d566ddf003f5425345ad Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com> Date: Sun, 28 Jan 2024 16:45:52 -0800 Subject: [PATCH] Publish wasm (#116) * Create jekyll-gh-pages.yml * Fix publish-wasm - --release instead of -r - set working directory - use v4 Signed-off-by: Anand Krishnamoorthi --------- Signed-off-by: Anand Krishnamoorthi --- .github/workflows/publish-wasm.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-wasm.yml b/.github/workflows/publish-wasm.yml index 22fd2a2..31b295d 100644 --- a/.github/workflows/publish-wasm.yml +++ b/.github/workflows/publish-wasm.yml @@ -16,18 +16,17 @@ jobs: with: fetch-depth: 0 # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - name: Install wasm-pack run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Build - run: wasm-pack build --target nodejs -r + run: wasm-pack build --target nodejs --release working-directory: ./bindings/wasm - name: Publish run: wasm-pack publish --target nodejs working-directory: ./bindings/wasm env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} -