Skip to content

Commit 896bd90

Browse files
chore: update ubuntu image and use nvmrc
1 parent a5b13c1 commit 896bd90

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
jobs:
1616
rust-audit:
17-
runs-on: ubuntu-22.04
17+
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
@@ -23,7 +23,7 @@ jobs:
2323
manifest-path: "deps/swc/bindings/binding_typescript_wasm/Cargo.toml"
2424

2525
typescript-audit:
26-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-latest
2727
permissions:
2828
security-events: write
2929
packages: read

.github/workflows/build-swc.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- 'tools/*'
77
- 'deps/*'
88

9-
env:
10-
NODE_VERSION: lts/*
11-
129
jobs:
1310
build-swc:
1411
runs-on: ubuntu-latest
@@ -18,6 +15,8 @@ jobs:
1815

1916
- name: Set up Node.js
2017
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
18+
with:
19+
node-version-file: '.nvmrc'
2120

2221
- name: Set up Docker
2322
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1

.github/workflows/update-swc.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ on:
99
schedule:
1010
- cron: '0 0 * * 1' # Every Monday at 00:00 UTC
1111

12-
env:
13-
NODE_VERSION: lts/*
14-
1512
jobs:
1613
update-swc:
1714
runs-on: ubuntu-latest
@@ -26,6 +23,8 @@ jobs:
2623

2724
- name: Set up Node.js
2825
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
26+
with:
27+
node-version-file: '.nvmrc'
2928

3029
- name: Check if SWC update is required
3130
id: version-check

0 commit comments

Comments
 (0)