Skip to content

Commit

Permalink
ci:Cache node_modules main and render
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Jul 5, 2024
1 parent 92ef611 commit 6cd878a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/yakit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,23 @@ jobs:
uses: Saionaro/extract-package-version@v1.1.1
- name: Echo Yakit Package Version
run: echo ${{ steps.extract_version.outputs.version }}
# Cache node_modules main
- name: Cache node_modules for main process
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-main-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-main-
# Cache node_modules renderer
- name: Cache node_modules for renderer process
uses: actions/cache@v2
with:
path: app/renderer/src/main/node_modules
key: ${{ runner.os }}-node-renderer-${{ hashFiles('app/renderer/src/main/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-renderer-
- run: yarn install && yarn install-render
working-directory: ./
name: "Install Dependencies"
Expand Down

0 comments on commit 6cd878a

Please sign in to comment.