mirror of https://github.com/electron/electron
22 lines
723 B
YAML
22 lines
723 B
YAML
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
|