Update action.yml
parent
eaa1210d13
commit
e8d39a91a5
|
@ -7,10 +7,21 @@ inputs:
|
|||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: ./.github/actions/cache-install
|
||||
id: node-modules-cache
|
||||
with:
|
||||
node_version: ${{ inputs.node_version }}
|
||||
- name: 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:
|
||||
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
|
||||
shell: bash
|
||||
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
||||
|
|
Loading…
Reference in New Issue