mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ci: enable node_modules cache
This commit is contained in:
1 parent
1fed6ff2f1
commit
b43d61be82
1 file changed
+5
@@ -23,6 +23,11 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 14.x
|
||||
- name: Cache node modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: .yarn/cache
|
||||
key: ${{ runner.os }}-deps-${{ hashFiles('**/package.json') }}
|
||||
- name: Config
|
||||
run: |
|
||||
[[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml
|
||||
|
||||
Reference in new issue
Block a user