Skip to content

Commit 74a6424

Browse files
authored
update actions and prevent caching node_modules cache directory (#10)
1 parent e10a7c6 commit 74a6424

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
required: true
77
node-version:
88
description: "Node Version"
9-
default: 16
9+
default: 18
1010
required: false
1111
github-token:
1212
description: "Github token to use when checking out the repo"
@@ -18,18 +18,20 @@ inputs:
1818
runs:
1919
using: "composite"
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
with:
2323
token: ${{ inputs.github-token }}
2424
fetch-depth: ${{ inputs.fetch-depth }}
2525
- uses: actions/setup-node@v3
2626
with:
2727
cache: "yarn"
2828
node-version: "${{ inputs.node-version }}"
29-
- uses: actions/cache@v3
29+
- uses: actions/cache@v4
3030
id: yarn-cache
3131
with:
32-
path: "**/node_modules"
32+
path: |
33+
**/node_modules
34+
!**/node_modules/.cache
3335
key: ${{ runner.os }}-yarn-node-${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
3436
- name: Install Dependencies If Not Cached
3537
run: \[ -d node_modules \] || yarn install --frozen-lockfile

0 commit comments

Comments
 (0)