添加 action.yml
This commit is contained in:
commit
e003b4888e
26
action.yml
Normal file
26
action.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user