|
|
@ -80,12 +80,17 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Node - Yarn
|
|
|
|
## Node - Yarn
|
|
|
|
|
|
|
|
The yarn cache directory will depend on your operating system and version of `yarn`. See https://yarnpkg.com/lang/en/docs/cli/cache/ for more info.
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
|
|
|
|
- name: Get yarn cache
|
|
|
|
|
|
|
|
id: yarn-cache
|
|
|
|
|
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
|
|
|
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: ~/.cache/yarn
|
|
|
|
path: ${{ steps.yarn-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock')) }}
|
|
|
|
restore-keys: |
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
```
|
|
|
|
```
|
|
|
|