fix(ci): include node version in yarn cache
The dependency set may differ between node versions. This fixed caching makes it harder for version-specific deps and might introduce bugs therefore. We now include the node version in the cache key. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
2
.github/actions/setup-node/action.yml
vendored
2
.github/actions/setup-node/action.yml
vendored
@@ -23,7 +23,7 @@ runs:
|
|||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
key: ${{ runner.os }}-yarn-master
|
key: ${{ runner.os }}-node${{ inputs.NODEJS_VERSION }}-yarn-master
|
||||||
|
|
||||||
- name: Set up NodeJS
|
- name: Set up NodeJS
|
||||||
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||||
|
|||||||
Reference in New Issue
Block a user