From 066bb4e9c92371055f9752b7ff01aacf03f75048 Mon Sep 17 00:00:00 2001 From: Joel M Date: Sat, 26 Dec 2020 20:04:42 +0900 Subject: [PATCH] fix(ci): insert *_bg files in @swc/wasm-web (#1291) (#1293) --- .github/workflows/publish-wasm-web.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish-wasm-web.yml b/.github/workflows/publish-wasm-web.yml index 51dd8c9d72a8..bb90f068c1b2 100644 --- a/.github/workflows/publish-wasm-web.yml +++ b/.github/workflows/publish-wasm-web.yml @@ -43,6 +43,10 @@ jobs: sed -i'' -e 's/"name": "@swc\/wasm"/"name": "@swc\/wasm-web"/g' package.json working-directory: wasm/pkg + - name: Include *_bg files + run: jq '.files += ["wasm_bg.js", "wasm_bg.wasm.d.ts"]' package.json + working-directory: wasm/pkg + - name: Publish run: | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc