mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
17 lines
693 B
YAML
17 lines
693 B
YAML
name: 'Installing Yarn dependencies'
|
|
description: 'Installs the dependencies using Yarn'
|
|
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
|
|
with:
|
|
path: |
|
|
./node_modules/
|
|
# If just `WORKSPACE` or `yarn.lock` is changed, the most recent cache can be restored.
|
|
# See: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action.
|
|
key: v1-angular-main-deps-${{hashFiles('WORKSPACE')}}-${{hashFiles('yarn.lock')}}
|
|
restore-keys: v1-angular-main-deps-
|
|
|
|
- run: yarn install --frozen-lockfile --non-interactive
|
|
shell: bash
|