actions-yarn-installl/action.yml
2023-08-04 22:05:56 +08:00

27 lines
496 B
YAML

name: 'Yarn install'
description: 'Run yarn install with cache enabled'
runs:
using: 'composite'
steps:
- run: corepack enable
- uses: seepine/hash-files@v1
id: get-hash
with:
patterns: |
**/package.json
**/yarn.lock
- uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- run: echo install start
- run: yarn install
- run: echo install end