更新 .gitea/workflows/multiple.yml
This commit is contained in:
parent
67b82c8f2b
commit
4cd6dc6e87
@ -22,15 +22,18 @@ jobs:
|
||||
node-version: 16
|
||||
cache: 'yarn'
|
||||
|
||||
- run: |
|
||||
echo ${{ runner.os }}
|
||||
echo ${{ hashFiles('yarn.lock') }}
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
uses: https://gitea.com/actions/go-hashfiles
|
||||
patterns: '**/yarn.lock'
|
||||
|
||||
- run: echo ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
|
||||
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
||||
|
Loading…
x
Reference in New Issue
Block a user