Skip to content

Commit 6c04c51

Browse files
committed
ci: separate build & package
1 parent 2ac1291 commit 6c04c51

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
run: bun i --frozen-lockfile
8989

9090
- name: Build WASM
91-
run: bun run package
91+
run: bun run build:wasm && bun run package
9292

9393
- name: Upload WASM module to GitHub
9494
uses: actions/upload-artifact@v4

.github/workflows/pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: bun i --frozen-lockfile
2727

2828
- name: Build WASM
29-
run: bun run package
29+
run: bun run build:wasm && bun run package
3030

3131
- name: Pre-Release
3232
uses: softprops/action-gh-release@v1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: bun i --frozen-lockfile
2828

2929
- name: Build WASM
30-
run: bun run package
30+
run: bun run build:wasm && bun run package
3131

3232
- name: Release
3333
uses: softprops/action-gh-release@v1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:wasm": "bun ./scripts/cargo-msfs.ts",
1111
"build:wasm:2020": "bun ./scripts/cargo-msfs.ts --version 2020",
1212
"build:wasm:2024": "bun ./scripts/cargo-msfs.ts --version 2024",
13-
"package": "bun run build:wasm && bestzip wasm.zip dist/wasm/*"
13+
"package": "bestzip wasm.zip dist/wasm/*"
1414
},
1515
"devDependencies": {
1616
"@eslint/js": "^9.23.0",

0 commit comments

Comments
 (0)