Skip to content

Commit

Permalink
Use Node.js 22 in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Apr 30, 2024
1 parent 09b4649 commit e26ca58
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22
- run: npm ci
- run: npx eslint .

Expand All @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22
- run: npm ci
- run: npm pack
- uses: actions/upload-artifact@v3
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22
- run: npm ci
- run: npx remark --frail .

Expand All @@ -46,6 +46,7 @@ jobs:
node-version:
- 18
- 20
- 22
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand All @@ -60,15 +61,15 @@ jobs:
name: test-results-node${{ matrix.node-version }}
path: test-results/
- uses: codecov/codecov-action@v3
if: ${{ matrix.node-version == 20 }}
if: ${{ matrix.node-version == 22 }}

prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20
node-version: 22
- run: npm ci
- run: npx prettier .

Expand All @@ -78,7 +79,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22
- run: npm ci
- run: npx tsc

Expand All @@ -97,7 +98,7 @@ jobs:
steps:
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org
- uses: actions/download-artifact@v3
with: { name: package }
Expand Down

0 comments on commit e26ca58

Please sign in to comment.