fix
This commit is contained in:
parent
4d37530274
commit
1e6c5ccd8c
@ -16,7 +16,10 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- run: corepack enable
|
||||
# - run: corepack enable
|
||||
- run: node -v
|
||||
|
||||
- run: yarn -v
|
||||
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
@ -46,11 +49,18 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
uses: https://gitea.com/seepine/hash-files@v1
|
||||
with:
|
||||
patterns: |
|
||||
**/yarn.lock
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ needs.setup.outputs.hash }}
|
||||
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
||||
@ -65,6 +75,13 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
uses: https://gitea.com/seepine/hash-files@v1
|
||||
with:
|
||||
patterns: |
|
||||
**/yarn.lock
|
||||
|
||||
- run: echo "${{ env.HASH }}"
|
||||
- run: echo "${{ workflows.setup.steps.get-hash.outputs.hash }}"
|
||||
- run: echo "${{ workflows.setup.outputs.hash }}"
|
||||
@ -78,7 +95,7 @@ jobs:
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ needs.setup.outputs.hash }}
|
||||
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
||||
|
Loading…
x
Reference in New Issue
Block a user