Skip to content

Commit 340c14b

Browse files
committed
ci: hash lock the swc native dependency
1 parent 5e07d2f commit 340c14b

File tree

4 files changed

+10994
-4841
lines changed

4 files changed

+10994
-4841
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
npm ci
41-
# `@swc/core` has a postinstall hook that in GHA pulls in the wasm version of swc. This pulls in the native
42-
# binary version instead, which is faster and more reliable. Also, the wasm version seems to fail with a
43-
# strange serde error in CI. ("Error: invalid type: unit value, expected struct Options")
44-
# See: https://github.com/swc-project/swc/blob/main/postinstall.js#L197-L200
45-
core_version="$(jq --raw-output '.packages."node_modules/@swc/core".optionalDependencies."@swc/core-linux-x64-gnu"' < ./package-lock.json)"
46-
npm install -no-save --loglevel=error --prefer-offline --no-audit --progress=false "@swc/core-linux-x64-gnu@${core_version}"
4741
4842
- name: Restore Turbo Cache
4943
uses: actions/cache@v3

0 commit comments

Comments
 (0)