add caching
This commit is contained in:
parent
2c0cb2f62b
commit
389c2e4844
14
.github/workflows/build-and-release-desktop.yml
vendored
14
.github/workflows/build-and-release-desktop.yml
vendored
@ -9,6 +9,9 @@ on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
env:
|
||||
YARN_CACHE_FOLDER: ~/.yarn
|
||||
|
||||
jobs:
|
||||
build_on_linux:
|
||||
name: "Build & release desktop app for ${{ matrix.os }}"
|
||||
@ -38,6 +41,17 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Caching
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
${{ env.YARN_CACHE_FOLDER }}
|
||||
~/.cache/electron
|
||||
~/.cache/electron-builder
|
||||
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.OS }}-yarn-
|
||||
|
||||
- name: "Install dependencies"
|
||||
run: yarn install --froze-lockfile
|
||||
working-directory: "desktop"
|
||||
|
Loading…
Reference in New Issue
Block a user