Skip to content

Commit

Permalink
chore(CI): upgrade to Node 22 (#3628)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Oct 2, 2024
1 parent c4c5431 commit cf6155d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Install Pnpm
run: corepack enable

- name: Setup Node.js 18.x
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22
cache: 'pnpm'

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Install Pnpm
run: corepack enable

- name: Setup Node.js 18
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: 22
cache: 'pnpm'

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- name: Install Pnpm
run: corepack enable

- name: Setup Node.js 18
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: 22
cache: 'pnpm'

- name: Install Dependencies
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
matrix:
# run ut in MacOS, as SWC cases will fail in Ubuntu CI
os: [macos-14, windows-latest]
node-version: [18.x]

steps:
- name: Checkout
Expand All @@ -42,11 +41,11 @@ jobs:
- "!**/_meta.json"
- "!**/dictionary.txt"
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js
if: steps.changes.outputs.changed == 'true'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 22
cache: 'pnpm'

- name: Install Dependencies
Expand All @@ -64,7 +63,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x]

steps:
- name: Checkout
Expand All @@ -86,11 +84,11 @@ jobs:
- "!**/_meta.json"
- "!**/dictionary.txt"
- name: Setup Node.js ${{ matrix.node-version }}
- name: Setup Node.js
if: steps.changes.outputs.changed == 'true'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 22
cache: 'pnpm'

- name: Install Dependencies
Expand Down

0 comments on commit cf6155d

Please sign in to comment.