Skip to content

Commit

Permalink
ci: fix pnpm not found
Browse files Browse the repository at this point in the history
  • Loading branch information
edvardchen committed Sep 13, 2024
1 parent 394250d commit ab4396b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v1
- uses: pnpm/action-setup@v2
with:
version: 8.13.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
- name: build and test
run: |
pnpm i --frozen-lockfile
pnpm run build --if-present
pnpm test
env:
CI: true

0 comments on commit ab4396b

Please sign in to comment.