Skip to content

Commit 0226cfa

Browse files
committed
ci(actions): properly using github actions cache with yarn
1 parent 65d432c commit 0226cfa

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/check.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,19 @@ jobs:
2020
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2121
- name: Check out Code
2222
uses: actions/checkout@v2
23-
- name: Get yarn cache directory path
24-
id: yarn-cache-dir-path
25-
run: echo "::set-output name=dir::$(yarn cache dir)"
2623
- name: Cache node modules
2724
id: yarn-cache
2825
uses: actions/cache@v1
2926
with:
30-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
27+
path: |
28+
node_modules
29+
*/*/node_modules
3130
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
3231
restore-keys: |
3332
${{ runner.os }}-yarn-
3433
- name: Install Dependencies
3534
if: steps.yarn-cache.outputs.cache-hit != 'true'
36-
run: yarn install
35+
run: yarn --frozen-lockfile
3736
env:
3837
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3938
- name: Lint

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This plugin adds some enhancements to @manfredsteyer [DDD](https://github.com/an
2020

2121
## Build Status
2222

23-
![check](https://github.com/xmlking/nxp/workflows/check/badge.svg)
23+
[![check](https://github.com/xmlking/nxp/workflows/check/badge.svg)](https://github.com/xmlking/nxp/actions?query=workflow%3Acheck)
2424

2525
## Documentation
2626

0 commit comments

Comments
 (0)