Skip to content

Commit 924e78c

Browse files
run install before other jobs
1 parent 781d3d2 commit 924e78c

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/actions/setup-node/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Setup Node
22
description: Setup Node with yarn and restore cached dependencies
33

4+
inputs:
5+
immutable-install:
6+
description: Whether to run `yarn install --immutable`
7+
required: false
8+
default: 'false'
9+
410
runs:
511
using: composite
612
steps:
@@ -13,3 +19,6 @@ runs:
1319
with:
1420
node-version-file: '.nvmrc'
1521
cache: 'yarn'
22+
23+
- name: Install dependencies
24+
run: yarn install ${{ inputs.immutable-install == 'true' && '--immutable' || '' }}

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ jobs:
1616

1717
- name: Setup node
1818
uses: ./.github/actions/setup-node
19-
20-
- name: Yarn install
21-
run: yarn install --immutable
19+
with:
20+
immutable-install: true
2221

2322
format:
2423
name: Format

0 commit comments

Comments
 (0)