Skip to content

Commit

Permalink
ci: update workflows (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Feb 28, 2025
1 parent e9ab5c6 commit d7db51c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
# - 'macos-latest'
# - 'windows-latest'
node_version:
- '22'
- '20'
- '18'
- '16'
- '14'
Expand All @@ -20,22 +22,18 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}

# https://github.com/bahmutov/npm-install/issues/103#issuecomment-931226602
- name: Update NPM
run: npm install --global npm@8

- name: Install Dependencies
run: npm ci

- name: Lint
if: matrix.node_version == '18'
if: matrix.node_version == '22'
run: npm run lint

- name: Run Tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4

- name: Install dependencies
run: npm i
Expand Down

0 comments on commit d7db51c

Please sign in to comment.