Skip to content

Commit

Permalink
migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
debkanchan committed Feb 13, 2024
1 parent 362a467 commit 04ed88e
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,26 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
node-version-file: .nvmrc
version: 8

- name: Cache node_modules
uses: actions/cache@v4
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
path: |
**/node_modules
key: |
node-${{ hashfiles('**/package-lock.json') }}
restore-keys: |
node-
node-version-file: .nvmrc
cache: pnpm

- name: Install Packages
run: npm install
run: pnpm install

- name: Format
run: npm run format
run: pnpm run format

- name: Lint
run: npm run lint
run: pnpm run lint

# Enable in production
# - name: Test
# run: npm test
# run: pnpm test

0 comments on commit 04ed88e

Please sign in to comment.