commit 54fceec42645dc024dc21e104f0d87ee5128e28f
parent 3807aac9a3e6f5a27dbf87630281e7d1a9cf720f
Author: finwo <finwo@pm.me>
Date: Sat, 14 Mar 2026 22:39:38 +0100
Update publish workflow
Diffstat:
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
@@ -14,32 +14,36 @@ jobs:
strategy:
matrix:
- node-version: [22.x]
+ node-version: [22,24]
steps:
- uses: actions/checkout@v3
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v3
+
+ - uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
+ registry-url: 'https://registry.npmjs.org'
+
- name: Install @finwo/dep
uses: finwo/dep@edge
+
- name: Set up Clang
run: |
sudo apt update
sudo apt install -yq clang llvm lld
+
- name: build wasm component
run: |
dep i
make
+
- name: npm install and npm test
run: |
npm install
npm test
+
- name: npm publish
run: |
- npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
- npm publish || true
+ npm publish
env:
CI: true
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}