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

refactor(bindings/ts): Inline Wasm file into wasm.js #9139

Merged
merged 9 commits into from
Jul 4, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
CI: patch.mjs
  • Loading branch information
kdy1 committed Jul 4, 2024
commit ca6c91e420aaa0b15a44ce4a7c5aa3693265108a
7 changes: 6 additions & 1 deletion .github/workflows/publish-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,15 @@ jobs:
wasm-pack build --out-name wasm --release --scope=swc --target ${{ matrix.settings.target }}
sed -i -e 's/"name": "@swc\/${{ matrix.settings.crate }}"/"name": "${{ matrix.settings.npm }}"/g' pkg/package.json

# If scripts/patch.mjs exists, apply it
if [ -f scripts/patch.mjs ]; then
node scripts/patch.mjs
fi

- name: Publish
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
(cd bindings/${{ matrix.settings.crate }}/pkg && yarn npm publish --access public --tag $NPM_TAG)
(cd bindings/${{ matrix.settings.crate }}/pkg && npm publish --access public --tag $NPM_TAG)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}