Skip to content

Commit

Permalink
fix: install pnpm before nodejs tries to find the cache location for it
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Dec 12, 2024
1 parent 1d39752 commit 835ce50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,19 @@ jobs:
with:
show-progress: false

- name: πŸ“¦ Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9

- name: βŽ” Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: πŸ“¦ Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true
- name: πŸ“₯ Download dependencies
run: pnpm i

- name: 🧢 Lint
run: pnpm run lint
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@ jobs:
with:
show-progress: false

- name: πŸ“¦ Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9

- name: βŽ” Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: lts/*
cache: pnpm

- name: πŸ“¦ Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9
run_install: true
- name: πŸ“₯ Download dependencies
run: pnpm i

- name: 🚒 Deploy to NPM as 'latest'
if: github.event.release.prerelease == false
Expand Down

0 comments on commit 835ce50

Please sign in to comment.