action.yml 723 B

123456789101112131415161718192021
  1. name: 'Install Dependencies'
  2. description: 'Installs yarn depdencies using cache when available'
  3. runs:
  4. using: "composite"
  5. steps:
  6. - name: Get yarn cache directory path
  7. shell: bash
  8. id: yarn-cache-dir-path
  9. run: echo "dir=$(node src/electron/script/yarn cache dir)" >> $GITHUB_OUTPUT
  10. - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
  11. id: yarn-cache
  12. with:
  13. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  14. key: ${{ runner.os }}-yarn-${{ hashFiles('src/electron/yarn.lock') }}
  15. restore-keys: |
  16. ${{ runner.os }}-yarn-
  17. - name: Install Dependencies
  18. shell: bash
  19. run: |
  20. cd src/electron
  21. node script/yarn install --frozen-lockfile --prefer-offline