action-demo/.gitea/actions/yarn-install/action.yml
huanghs 9f747846e8
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Failing after 26s
Gitea Actions Demo / test (push) Successful in 5m29s
Gitea Actions Demo / build (push) Successful in 5m27s
Gitea Actions Demo / setup (push) Successful in 20m26s
fix
2023-08-02 12:43:38 +08:00

27 lines
504 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-install-${{ steps.get-hash.outputs.hash }}
- run: echo install start
- run: yarn install
- run: echo install end