From 8e1f4933dcabd2ff5daa9be6a9a8d3e043ac769c Mon Sep 17 00:00:00 2001 From: Toon Willems Date: Fri, 29 Nov 2024 10:46:18 +0100 Subject: [PATCH] publish package --- .github/workflows/javascript.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 344045f..58c14b3 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -19,6 +19,10 @@ jobs: working-directory: ./expression-js steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ - name: Install wasm-pack run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Install dependencies @@ -27,3 +31,7 @@ jobs: run: npm run build - name: Package run: wasm-pack pack + - name: Publish + run: wasm-pack publish -t ${{inputs.version}} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}