Skip to content

Commit

Permalink
update actions and prevent caching node_modules cache directory (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemhiller authored Oct 17, 2024
1 parent e10a7c6 commit 74a6424
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
required: true
node-version:
description: "Node Version"
default: 16
default: 18
required: false
github-token:
description: "Github token to use when checking out the repo"
Expand All @@ -18,18 +18,20 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ inputs.github-token }}
fetch-depth: ${{ inputs.fetch-depth }}
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version: "${{ inputs.node-version }}"
- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn-cache
with:
path: "**/node_modules"
path: |
**/node_modules
!**/node_modules/.cache
key: ${{ runner.os }}-yarn-node-${{ inputs.node-version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies If Not Cached
run: \[ -d node_modules \] || yarn install --frozen-lockfile
Expand Down

0 comments on commit 74a6424

Please sign in to comment.