123456789101112131415161718192021 |
- name: 'Install Dependencies'
- description: 'Installs yarn depdencies using cache when available'
- runs:
- using: "composite"
- steps:
- - name: Get yarn cache directory path
- shell: bash
- id: yarn-cache-dir-path
- run: echo "dir=$(node src/electron/script/yarn cache dir)" >> $GITHUB_OUTPUT
- - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
- id: yarn-cache
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('src/electron/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
- - name: Install Dependencies
- shell: bash
- run: |
- cd src/electron
- node script/yarn install --frozen-lockfile --prefer-offline
|