Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from NaturalCycles/add-cache-version-2
Browse files Browse the repository at this point in the history
fix(ci): Change the way we pass cacheVersion to setup-node
  • Loading branch information
Depyden authored Jul 14, 2023
2 parents c56617d + 300f677 commit 9e687b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions commands/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: setup-node
description: Set up Node.js and install deps/fetch cache
parameters:
inputs:
cacheVersion:
type: string
description: 'Version of the cached dependencies. Change it to create a new cache'
required: false
default: "v1"
runs:
using: "composite"
Expand All @@ -12,7 +13,7 @@ runs:
- uses: actions/cache@v3
with:
path: 'node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-<< parameters.cacheVersion >>
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-${{ inputs.cacheVersion }}
- run: yarn --frozen-lockfile
shell: bash

0 comments on commit 9e687b5

Please sign in to comment.