We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 781d3d2 commit 924e78cCopy full SHA for 924e78c
2 files changed
.github/actions/setup-node/action.yml
@@ -1,6 +1,12 @@
1
name: Setup Node
2
description: Setup Node with yarn and restore cached dependencies
3
4
+inputs:
5
+ immutable-install:
6
+ description: Whether to run `yarn install --immutable`
7
+ required: false
8
+ default: 'false'
9
+
10
runs:
11
using: composite
12
steps:
@@ -13,3 +19,6 @@ runs:
13
19
with:
14
20
node-version-file: '.nvmrc'
15
21
cache: 'yarn'
22
23
+ - name: Install dependencies
24
+ run: yarn install ${{ inputs.immutable-install == 'true' && '--immutable' || '' }}
.github/workflows/ci.yml
@@ -16,9 +16,8 @@ jobs:
16
17
- name: Setup node
18
uses: ./.github/actions/setup-node
-
- - name: Yarn install
- run: yarn install --immutable
+ with:
+ immutable-install: true
format:
name: Format
0 commit comments