Skip to content

Commit aff715e

Browse files
committed
ensure to swap to the stable engine
When releasing the `stable` version
1 parent f22261b commit aff715e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/release-stable.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,21 @@ jobs:
2828
registry-url: 'https://registry.npmjs.org'
2929
cache: 'npm'
3030

31+
- name: Use the `stable` engine
32+
run: |
33+
node ./scripts/swap-engines.js
34+
3135
- name: Cache node_modules
3236
uses: actions/cache@v3
3337
with:
3438
path: node_modules
3539
key: ${{ runner.os }}-${{ matrix.node-version }}-node_modules-${{ hashFiles('**/package-lock.json') }}
3640

37-
# Cargo already skips downloading dependencies if they already exist
38-
- name: Cache cargo
41+
- name: Cache node_modules
3942
uses: actions/cache@v3
4043
with:
41-
path: |
42-
~/.cargo/bin/
43-
~/.cargo/registry/index/
44-
~/.cargo/registry/cache/
45-
~/.cargo/git/db/
46-
target/
47-
key: ${{ runner.os }}-cargo-${{ hashFiles('./oxide/**/Cargo.lock') }}
44+
path: node_modules
45+
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ env.CACHE_PREFIX }}-node_modules-${{ hashFiles('**/package-lock.json') }}
4846

4947
- name: Install dependencies
5048
run: npm install
@@ -53,7 +51,7 @@ jobs:
5351
run: npm run build
5452

5553
- name: Test
56-
run: npm test
54+
run: npm run test
5755

5856
- name: Calculate environment variables
5957
run: |

0 commit comments

Comments
 (0)