Update action.yml
parent
eaa1210d13
commit
e8d39a91a5
|
@ -7,10 +7,21 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- uses: ./.github/actions/cache-install
|
- name: node_modules cache
|
||||||
id: node-modules-cache
|
id: node-modules-cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: node-modules-yarn
|
||||||
|
cache-key: ${{ inputs.node_version }}-${{ hashFiles('yarn.lock') }}
|
||||||
with:
|
with:
|
||||||
node_version: ${{ inputs.node_version }}
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-key }}
|
||||||
|
restore-keys: ${{ runner.os }}-${{ env.cache-name }}-
|
||||||
|
# Testing if this is slower
|
||||||
|
# - uses: ./.github/actions/cache-install
|
||||||
|
# id: node-modules-cache
|
||||||
|
# with:
|
||||||
|
# node_version: ${{ inputs.node_version }}
|
||||||
- name: Yarn install
|
- name: Yarn install
|
||||||
shell: bash
|
shell: bash
|
||||||
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
||||||
|
|
Loading…
Reference in New Issue