fix
This commit is contained in:
26
.gitea/actions/yarn-install/action.yml
Normal file
26
.gitea/actions/yarn-install/action.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: 'Yarn install'
|
||||
description: 'Run yarn install with cache enabled'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
|
||||
steps:
|
||||
- name: Corepack enable
|
||||
run: corepack enable
|
||||
|
||||
- name: Hash files
|
||||
id: get-hash
|
||||
uses: seepine/hash-files@v1
|
||||
with:
|
||||
patterns: |
|
||||
**/package.json
|
||||
**/yarn.lock
|
||||
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
Reference in New Issue
Block a user