Skip to content

Commit

Permalink
ci: for pnpm 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ethansnow2012 committed Apr 9, 2024
1 parent 0b0c83f commit 140a9af
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
Expand All @@ -11,7 +8,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -27,7 +23,9 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm' # specify cache for pnpm
- name: Install pnpm
run: npm install -g pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: latest
- 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 140a9af

Please sign in to comment.