Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix WASM release build #349

Merged
merged 1 commit into from
Mar 25, 2024
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
6 changes: 3 additions & 3 deletions .github/workflows/javascript-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: wasm32
path: bindings/javascript/wasm/dist/*.wasm
path: bindings/javascript/wasm/
if-no-files-found: error

release:
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:
- run: mv -f ./artifacts ./bindings/javascript

- name: Move Wasm artifacts
run: mv -f ./bindings/javascript/artifacts/wasm32/*.wasm ./bindings/javascript/wasm
run: mv -f ./bindings/javascript/artifacts/wasm32/ ./bindings/javascript/wasm-dist

- name: Move Node.js artifacts
run: yarn artifacts
Expand All @@ -266,7 +266,7 @@ jobs:
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc
npm publish --access public --provenance
cd wasm
cd wasm-dist
npm publish --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions bindings/javascript/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Update `html5ever` to `0.27`.

### Fixed

- WASM package build. [#341](https://github.com/Stranger6667/css-inline/issues/341)

## [0.13.1] - 2024-03-12

### Added
Expand Down
10 changes: 5 additions & 5 deletions bindings/javascript/wasm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ function __wbg_get_imports() {
const ret = getObject(arg0) === void 0;
return ret;
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
return ret;
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof obj === "string" ? obj : void 0;
Expand All @@ -269,11 +274,6 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
return ret;
};
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = getObject(arg0);
const ret = typeof val === "object" && val !== null;
Expand Down
2 changes: 1 addition & 1 deletion bindings/javascript/wasm/index.min.js

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

10 changes: 5 additions & 5 deletions bindings/javascript/wasm/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ function __wbg_get_imports() {
const ret = getObject(arg0) === void 0;
return ret;
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
return ret;
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof obj === "string" ? obj : void 0;
Expand All @@ -241,11 +246,6 @@ function __wbg_get_imports() {
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
};
imports.wbg.__wbindgen_boolean_get = function(arg0) {
const v = getObject(arg0);
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
return ret;
};
imports.wbg.__wbindgen_is_object = function(arg0) {
const val = getObject(arg0);
const ret = typeof val === "object" && val !== null;
Expand Down
Binary file modified bindings/javascript/wasm/index_bg.wasm
Binary file not shown.
Loading