Update action.yml

pull/7267/head
zomars 2023-02-20 18:57:53 -07:00
parent eaa1210d13
commit e8d39a91a5
1 changed files with 15 additions and 4 deletions

View File

@ -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'