Skip to content

Commit

Permalink
ci: setup latest LTS Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Dec 10, 2024
1 parent ae16fa9 commit 175236d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*
check-latest: true
architecture: x64
registry-url: https://registry.npmjs.org/
cache: pnpm
Expand All @@ -42,7 +43,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20]
node-version: [lts/*]
architecture: [x64]
steps:
- name: Checkout repository
Expand All @@ -56,6 +57,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
architecture: ${{ matrix.architecture }}
registry-url: https://registry.npmjs.org/
cache: pnpm
Expand All @@ -67,7 +69,7 @@ jobs:
pnpm build
- name: Archive production artifacts
uses: actions/upload-artifact@v4
if: ${{ matrix.node-version == 20 && matrix.os == 'ubuntu-latest' && matrix.architecture == 'x64' }}
if: ${{ matrix.node-version == 'lts/*' && matrix.os == 'ubuntu-latest' && matrix.architecture == 'x64' }}
with:
name: build
path: build
Expand Down Expand Up @@ -109,7 +111,8 @@ jobs:
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*
check-latest: true
architecture: x64
registry-url: https://registry.npmjs.org/
- name: Release to GitHub
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*
check-latest: true
architecture: x64
registry-url: https://registry.npmjs.org/
cache: pnpm
Expand All @@ -37,7 +38,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20]
node-version: [lts/*]
architecture: [x64]
steps:
- name: Checkout repository
Expand All @@ -51,6 +52,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
architecture: ${{ matrix.architecture }}
registry-url: https://registry.npmjs.org/
cache: pnpm
Expand Down Expand Up @@ -85,7 +87,8 @@ jobs:
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*
check-latest: true
architecture: x64
registry-url: https://registry.npmjs.org/
cache: pnpm
Expand Down

0 comments on commit 175236d

Please sign in to comment.