Skip to content

Commit 8e6eeba

Browse files
committed
new version with setup-node caching
1 parent b510ced commit 8e6eeba

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

action.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: 'leon'
44
inputs:
55
node-version:
66
description: 'Version Spec of the version to use. Examples: 20.x, 20.4.0, >=20.0.0'
7-
default: '20'
7+
default: '22'
88
cache-key:
99
description: 'A key to use for the cache. sometimes you need to bust the cache'
1010
default: '1'
@@ -20,23 +20,7 @@ runs:
2020
uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ inputs.node-version }}
23-
24-
- name: Get pnpm store directory
25-
id: pnpm-cache
26-
shell: bash
27-
run: echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_ENV
28-
29-
- uses: actions/cache@v4
30-
name: Setup pnpm cache
31-
with:
32-
path: |
33-
${{ env.PNPM_STORE_PATH }}
34-
~/cache
35-
~/.cache
36-
!~/cache/exclude
37-
!~/.cache/exclude
38-
key: ${{ runner.os }}-${{ inputs.node-version }}-${{ inputs.cache-key }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
39-
restore-keys: ${{ runner.os }}-${{ inputs.node-version }}-${{ inputs.cache-key }}-pnpm-
23+
cache: 'pnpm'
4024

4125
- name: Install dependencies
4226
shell: bash

0 commit comments

Comments
 (0)