Skip to content

Commit

Permalink
ci: for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ethansnow2012 committed Apr 9, 2024
1 parent 5d712ef commit 0b0c83f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
cache: 'pnpm' # specify cache for pnpm
- name: Install pnpm
run: npm install -g pnpm
- run: pnpm install # or `pnpm ci` if you have a pnpm-lock.yaml
- run: pnpm run build --if-present
- run: pnpm test

0 comments on commit 0b0c83f

Please sign in to comment.