Skip to content

Commit

Permalink
build: fix WASM release build
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
  • Loading branch information
Stranger6667 committed Mar 25, 2024
1 parent 7850799 commit 2d5cef4
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
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.

0 comments on commit 2d5cef4

Please sign in to comment.