Skip to content

Commit

Permalink
chore: fix version pnpm for github action
Browse files Browse the repository at this point in the history
Signed-off-by: Nam Hoang <[email protected]>
  • Loading branch information
namhoang1604 committed Oct 9, 2023
1 parent 55617d9 commit 58175f6
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm add -g pnpm
- name: 'Setup Node.js with pnpm cache'

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
node-version: '18'

- name: Install pnpm
run: npm install -g [email protected]

- run: pnpm install
- run: pnpm build
Expand All @@ -44,15 +43,14 @@ jobs:
with:
fetch-depth: 0
token: ${{secrets.GITHUB_TOKEN}}
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm add -g pnpm
- name: 'Setup Node.js with pnpm cache'

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
node-version: '18'

- name: Install pnpm
run: npm install -g [email protected]

- name: 'Restore build output'
uses: actions/cache/restore@v3
Expand Down

0 comments on commit 58175f6

Please sign in to comment.