File tree 2 files changed +17
-2
lines changed
.github/actions/prepare-install
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 47
47
" autofix" ,
48
48
" autofixers" ,
49
49
" autofixes" ,
50
+ " automations" ,
50
51
" backticks" ,
51
52
" bigint" ,
52
53
" bivariant" ,
Original file line number Diff line number Diff line change 1
- name : ' Prepare: Checkout and Install'
2
- description : ' Prepares the repo for a job by checking out and installing dependencies'
1
+ # IMPORTANT NOTE TO MAINTAINERS
2
+ #
3
+ # Changes to this composite action should be carefully considered and reviewed because it is referenced
4
+ # and executed by multiple workflows in our private-automations repository.
5
+ #
6
+ # Ensure that a member of @typescript-eslint/core-team tests changes there before merging.
7
+
8
+ name : ' Prepare: Install'
9
+ description : ' Prepares the repo by installing dependencies'
3
10
inputs :
4
11
node-version :
5
12
description : ' The node version to setup'
6
13
required : true
7
14
registry-url :
8
15
description : ' Define registry-url'
9
16
required : false
17
+ # NOTE: This is required for our use-case of sharing this action across multiple repos
18
+ working-directory :
19
+ description : ' Override the working directory to run the installation in'
20
+ required : false
21
+ default : ' .'
10
22
11
23
# outputs: - no outputs
12
24
15
27
steps :
16
28
- name : echo github.ref
17
29
shell : bash
30
+ working-directory : ${{ inputs.working-directory }}
18
31
run : echo ${{ github.ref }}
19
32
20
33
- name : Use Node.js ${{ inputs.node-version }}
40
53
# if the cache was hit - this will run in <1s
41
54
- name : Install dependencies
42
55
shell : bash
56
+ working-directory : ${{ inputs.working-directory }}
43
57
run : |
44
58
yarn --ignore-engines --frozen-lockfile --ignore-scripts
45
59
yarn check-clean-workspace-after-install
You can’t perform that action at this time.
0 commit comments