chore(setup): add yarn cache on workflow runs

This commit is contained in:
Karol Sójko
2022-08-04 08:20:01 +02:00
parent 58138c9a1f
commit c72a407095
7 changed files with 19 additions and 11 deletions

View File

@@ -19,7 +19,8 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn install
cache: 'yarn'
- run: yarn install --immutable
- run: yarn build:desktop
- run: yarn run webpack --config desktop.webpack.prod.js
- run: echo APP_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
@@ -47,6 +48,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'yarn'
- uses: actions/download-artifact@v3
with:
name: assets