Skip to content

Commit 4537451

Browse files
authored
Update lock file (#3424)
1 parent af8a7d9 commit 4537451

File tree

6 files changed

+17
-37
lines changed

6 files changed

+17
-37
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v6
3333
- uses: ./.github/actions/setup
34-
- uses: pnpm/action-setup@v4
35-
with:
36-
package_json_file: wasm/package.json
37-
- uses: actions/setup-node@v6
38-
with:
39-
node-version-file: wasm/package.json
40-
- run: tools/build_wasm.sh
41-
- run: git diff --exit-code
34+
- uses: ./.github/actions/setup-node
35+
- run: tools/wasm_build.sh
4236
- uses: raviqqe/pnpm-publish@v2
4337
with:
4438
directory: wasm

.github/workflows/test.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,11 @@ jobs:
162162
steps:
163163
- uses: actions/checkout@v6
164164
- uses: ./.github/actions/setup
165-
- uses: actions/setup-node@v6
166-
with:
167-
node-version: ">=23.5.0"
168-
- run: cargo install wasm-pack
169-
- run: wasm-pack build
170-
working-directory: wasm
171-
- run: wasm-pack test --node --release
172-
working-directory: wasm
173-
- run: wasm-pack pack
174-
working-directory: wasm
165+
- uses: ./.github/actions/setup-node
166+
- run: tools/wasm_build.sh
167+
- run: tools/wasm_test.sh
168+
# Test no changes in the lock file and ignored artifacts.
169+
- run: git diff --exit-code
175170
decode:
176171
runs-on: ubuntu-latest
177172
steps:
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ cargo install wasm-pack
66

77
cd wasm
88

9+
mkdir -p tmp
10+
911
wasm-pack build --target web -- --features async
10-
jq '. + input' pkg/package.json package.template.json >/tmp/package.json
11-
mv /tmp/package.json pkg
12+
jq '. + input' pkg/package.json package.template.json >tmp/package.json
13+
mv tmp/package.json pkg
1214

1315
wasm-pack pack

tools/wasm_test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
cd wasm
6+
wasm-pack test --node

wasm/package.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

wasm/pnpm-lock.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)