Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,46 @@ jobs:
permissions:
id-token: write
attestations: write
strategy:
matrix:
rust-version:
- 1.80.0
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
submodules: recursive

- name: Get StarlingMonkey Commit
id: starlingmonkey-commit
run: echo "STARLINGMONKEY_HASH=$(git submodule status | head -c9 | tail -c8)" >> "$GITHUB_OUTPUT"

- name: Install Rust Toolchain
run: |
rustup toolchain install ${{ matrix.rust-version }}
rustup target add wasm32-wasip1 --toolchain ${{ matrix.rust-version }}
rustup target add wasm32-wasip1

# NOTE: we must use a node version new-enough to have --experimental-wasm-jspi
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ">=22"

- name: Cache npm install
id: cache-node-modules
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
key: node-modules-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('package.json') }}
path: |
node_modules

- name: Install NPM packages
run: |
npm install

- name: Perform release build
run: |
npm run build:release

- name: Create release package
working-directory: ${{ needs.meta.outputs.project-dir }}
run: |
Expand All @@ -138,7 +157,7 @@ jobs:
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
if-no-files-found: error
name: ${{ needs.meta.outputs.project }}
name: componentize-js
path: |
${{ needs.meta.outputs.artifacts-glob }}

Expand Down Expand Up @@ -168,6 +187,8 @@ jobs:
needs:
- meta
- test-npm-release
env:
PREPACK_SKIP_BUILD: "true"
steps:
# NOTE: we need to checkout to pull npmrc
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [0.18.3-rc.1] - 2025-06-30

### 🐛 Bug Fixes

* *(ci)* remove packages prefix (#232) by @vados-cosmonic in #232

* *(ci)* remove if for JS projects (#231) by @vados-cosmonic in #231




## [0.18.3-rc.0] - 2025-06-27

### 🚀 Features
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/guest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@bytecodealliance/componentize-js": "*"
},
"scripts": {
"build": "node componentize.js && cargo build --release",
"build": "node componentize.js",
"all": "npm run build"
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bytecodealliance/componentize-js",
"version": "0.18.3-rc.0",
"version": "0.18.3-rc.1",
"homepage": "https://github.com/bytecodealliance/componentize-js#readme",
"description": "ESM -> WebAssembly Component creator, via a SpiderMonkey JS engine embedding",
"type": "module",
Expand Down Expand Up @@ -35,7 +35,7 @@
"test:release": "mocha -u tdd test/test.js --timeout 120000",
"test:weval": "cross-env WEVAL_TEST=1 mocha -u tdd test/test.js --timeout 120000",
"test:debug": "cross-env DEBUG_TEST=1 mocha -u tdd test/test.js --timeout 120000",
"prepublishOnly": "npm run build"
"prepack": "node scripts/prepack.mjs"
},
"files": [
"lib/interfaces",
Expand Down
12 changes: 12 additions & 0 deletions scripts/prepack.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { env } from 'node:process';
import { spawn } from 'node:child_process';

async function main() {
if (env.PREPACK_SKIP_BUILD) {
console.error(`SKIP_BUILD set, skipping prepack build step`);
return;
}
await spawn('npm', ['run', 'build'], { stdio: 'inherit' });
}

await main();
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function componentizeCmd (jsSource, opts) {
}

program
.version('0.18.3-rc.0')
.version('0.18.3-rc.1')
.description('Create a component from a JavaScript module')
.usage('<js-source> --wit wit-world.wit -o <component-path>')
.argument('<js-source>', 'JS source file to build')
Expand Down