Skip to content

Commit

Permalink
ci: use action/setup-node built-in pnpm cache and bump to node16 (#2142)
Browse files Browse the repository at this point in the history
ci: use action/setup-node built-in pnpm cache and bump node version to 16
  • Loading branch information
promer94 committed Aug 31, 2022
1 parent caddb73 commit 06923e8
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 14

- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 16
cache: pnpm

- run: pnpm install
- run: pnpm build
Expand Down

0 comments on commit 06923e8

Please sign in to comment.