File tree 12 files changed +41
-48
lines changed
12 files changed +41
-48
lines changed Original file line number Diff line number Diff line change 1
1
name : Check Action Metadata
2
2
3
- env :
4
- # See: https://github.com/actions/setup-node/#readme
5
- NODE_VERSION : 20.x
6
-
7
3
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
8
4
on :
9
5
push :
10
6
paths :
11
7
- " .github/workflows/check-action-metadata-task.ya?ml"
8
+ - " .npmrc"
12
9
- " action.ya?ml"
13
10
- " package.json"
14
11
- " package-lock.json"
15
12
- " Taskfile.ya?ml"
16
13
pull_request :
17
14
paths :
18
15
- " .github/workflows/check-action-metadata-task.ya?ml"
16
+ - " .npmrc"
19
17
- " action.ya?ml"
20
18
- " package.json"
21
19
- " package-lock.json"
37
35
- name : Setup Node.js
38
36
uses : actions/setup-node@v4
39
37
with :
40
- node-version : ${{ env.NODE_VERSION }}
38
+ node-version-file : package.json
41
39
42
40
- name : Install Task
43
41
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-markdown-task.md
2
2
name : Check Markdown
3
3
4
- env :
5
- # See: https://github.com/actions/setup-node/#readme
6
- NODE_VERSION : 16.x
7
-
8
4
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
9
5
on :
10
6
push :
11
7
paths :
12
8
- " .github/workflows/check-markdown-task.ya?ml"
13
9
- " .markdown-link-check.json"
10
+ - " .npmrc"
14
11
- " package.json"
15
12
- " package-lock.json"
16
13
- " Taskfile.ya?ml"
23
20
paths :
24
21
- " .github/workflows/check-markdown-task.ya?ml"
25
22
- " .markdown-link-check.json"
23
+ - " .npmrc"
26
24
- " package.json"
27
25
- " package-lock.json"
28
26
- " Taskfile.ya?ml"
48
46
- name : Setup Node.js
49
47
uses : actions/setup-node@v4
50
48
with :
51
- node-version : ${{ env.NODE_VERSION }}
49
+ node-version-file : package.json
52
50
53
51
- name : Initialize markdownlint-cli problem matcher
54
52
uses : xt0rted/markdownlint-problem-matcher@v3
72
70
- name : Setup Node.js
73
71
uses : actions/setup-node@v4
74
72
with :
75
- node-version : ${{ env.NODE_VERSION }}
73
+ node-version-file : package.json
76
74
77
75
- name : Install Task
78
76
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-npm-dependencies-task.md
2
2
name : Check npm Dependencies
3
3
4
- env :
5
- # See: https://github.com/actions/setup-node/#readme
6
- NODE_VERSION : 20.x
7
-
8
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
create :
16
12
- " .licensed.ya?ml"
17
13
- " Taskfile.ya?ml"
18
14
- " **/.gitmodules"
15
+ - " **/.npmrc"
19
16
- " **/package.json"
20
17
- " **/package-lock.json"
21
18
pull_request :
26
23
- " .licensed.ya?ml"
27
24
- " Taskfile.ya?ml"
28
25
- " **/.gitmodules"
26
+ - " **/.npmrc"
29
27
- " **/package.json"
30
28
- " **/package-lock.json"
31
29
schedule :
78
76
- name : Setup Node.js
79
77
uses : actions/setup-node@v4
80
78
with :
81
- node-version : ${{ env.NODE_VERSION }}
79
+ node-version-file : package.json
82
80
83
81
- name : Install Task
84
82
uses : arduino/setup-task@v2
@@ -128,7 +126,7 @@ jobs:
128
126
- name : Setup Node.js
129
127
uses : actions/setup-node@v4
130
128
with :
131
- node-version : ${{ env.NODE_VERSION }}
129
+ node-version-file : package.json
132
130
133
131
- name : Install Task
134
132
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-npm-task.md
2
2
name : Check npm
3
3
4
- env :
5
- # See: https://github.com/actions/setup-node/#readme
6
- NODE_VERSION : 16.x
7
-
8
4
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
9
5
on :
10
6
push :
11
7
paths :
12
8
- " .github/workflows/check-npm-task.ya?ml"
9
+ - " **/.npmrc"
13
10
- " **/package.json"
14
11
- " **/package-lock.json"
15
12
- " Taskfile.ya?ml"
16
13
pull_request :
17
14
paths :
18
15
- " .github/workflows/check-npm-task.ya?ml"
16
+ - " **/.npmrc"
19
17
- " **/package.json"
20
18
- " **/package-lock.json"
21
19
- " Taskfile.ya?ml"
39
37
- name : Setup Node.js
40
38
uses : actions/setup-node@v4
41
39
with :
42
- node-version : ${{ env.NODE_VERSION }}
40
+ node-version-file : package.json
43
41
44
42
- name : Install Task
45
43
uses : arduino/setup-task@v2
60
58
- name : Setup Node.js
61
59
uses : actions/setup-node@v4
62
60
with :
63
- node-version : ${{ env.NODE_VERSION }}
61
+ node-version-file : package.json
64
62
65
63
- name : Install Task
66
64
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 1
1
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-prettier-formatting-task.md
2
2
name : Check Prettier Formatting
3
3
4
- env :
5
- # See: https://github.com/actions/setup-node/#readme
6
- NODE_VERSION : 20.x
7
-
8
4
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
9
5
on :
10
6
push :
11
7
paths :
12
8
- " .github/workflows/check-prettier-formatting-task.ya?ml"
13
9
- " Taskfile.ya?ml"
10
+ - " **/.npmrc"
14
11
- " **/.prettierignore"
15
12
- " **/.prettierrc*"
16
13
# CSS
107
104
paths :
108
105
- " .github/workflows/check-prettier-formatting-task.ya?ml"
109
106
- " Taskfile.ya?ml"
107
+ - " **/.npmrc"
110
108
- " **/.prettierignore"
111
109
- " **/.prettierrc*"
112
110
# CSS
@@ -213,7 +211,7 @@ jobs:
213
211
- name : Setup Node.js
214
212
uses : actions/setup-node@v4
215
213
with :
216
- node-version : ${{ env.NODE_VERSION }}
214
+ node-version-file : package.json
217
215
218
216
- name : Install Task
219
217
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 1
1
name : Check TypeScript Configuration
2
2
3
- env :
4
- # See: https://github.com/actions/setup-node/#readme
5
- NODE_VERSION : 16.x
6
-
7
3
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
8
4
on :
9
5
push :
10
6
paths :
11
7
- " .github/workflows/check-tsconfig-task.ya?ml"
12
8
- " **/tsconfig*.json"
9
+ - " .npmrc"
13
10
- " package.json"
14
11
- " package-lock.json"
15
12
- " Taskfile.ya?ml"
16
13
pull_request :
17
14
paths :
18
15
- " .github/workflows/check-tsconfig-task.ya?ml"
19
16
- " **/tsconfig*.json"
17
+ - " .npmrc"
20
18
- " package.json"
21
19
- " package-lock.json"
22
20
- " Taskfile.ya?ml"
45
43
- name : Setup Node.js
46
44
uses : actions/setup-node@v4
47
45
with :
48
- node-version : ${{ env.NODE_VERSION }}
46
+ node-version-file : package.json
49
47
50
48
- name : Install Task
51
49
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 1
1
name : Check TypeScript
2
2
3
- env :
4
- # See: https://github.com/actions/setup-node/#readme
5
- NODE_VERSION : 20.x
6
-
7
3
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
8
4
on :
9
5
push :
10
6
paths :
11
7
- " .github/workflows/check-typescript-task.ya?ml"
12
8
- " .eslintignore"
13
9
- " **/.eslintrc*"
10
+ - " .npmrc"
14
11
- " package.json"
15
12
- " package-lock.json"
16
13
- " Taskfile.ya?ml"
25
22
- " .github/workflows/check-typescript-task.ya?ml"
26
23
- " .eslintignore"
27
24
- " **/.eslintrc*"
25
+ - " .npmrc"
28
26
- " package.json"
29
27
- " package-lock.json"
30
28
- " Taskfile.ya?ml"
51
49
- name : Setup Node.js
52
50
uses : actions/setup-node@v4
53
51
with :
54
- node-version : ${{ env.NODE_VERSION }}
52
+ node-version-file : package.json
55
53
56
54
- name : Install Task
57
55
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 2
2
name : Sync Labels
3
3
4
4
env :
5
- # See: https://github.com/actions/setup-node/#readme
6
- NODE_VERSION : 16.x
7
5
CONFIGURATIONS_FOLDER : .github/label-configuration-files
8
6
CONFIGURATIONS_ARTIFACT : label-configuration-files
9
7
13
11
paths :
14
12
- " .github/workflows/sync-labels-npm.ya?ml"
15
13
- " .github/label-configuration-files/*.ya?ml"
14
+ - " .npmrc"
16
15
- " package.json"
17
16
- " package-lock.json"
18
17
pull_request :
19
18
paths :
20
19
- " .github/workflows/sync-labels-npm.ya?ml"
21
20
- " .github/label-configuration-files/*.ya?ml"
21
+ - " .npmrc"
22
22
- " package.json"
23
23
- " package-lock.json"
24
24
schedule :
38
38
- name : Setup Node.js
39
39
uses : actions/setup-node@v4
40
40
with :
41
- node-version : ${{ env.NODE_VERSION }}
41
+ node-version-file : package.json
42
42
43
43
- name : Download JSON schema for labels configuration file
44
44
id : download-schema
@@ -132,7 +132,7 @@ jobs:
132
132
- name : Setup Node.js
133
133
uses : actions/setup-node@v4
134
134
with :
135
- node-version : ${{ env.NODE_VERSION }}
135
+ node-version-file : package.json
136
136
137
137
- name : Merge label configuration files
138
138
run : |
Original file line number Diff line number Diff line change 1
1
name : Test TypeScript
2
2
3
- env :
4
- # See: https://github.com/actions/setup-node/#readme
5
- NODE_VERSION : 20.x
6
-
7
3
on :
8
4
push :
9
5
paths :
10
6
- " .github/workflows/test-typescript-task.ya?ml"
7
+ - " .npmrc"
11
8
- " jest.config.js"
12
9
- " package.json"
13
10
- " package-lock.json"
21
18
pull_request :
22
19
paths :
23
20
- " .github/workflows/test-typescript-task.ya?ml"
21
+ - " .npmrc"
24
22
- " jest.config.js"
25
23
- " package.json"
26
24
- " package-lock.json"
54
52
- name : Setup Node.js
55
53
uses : actions/setup-node@v4
56
54
with :
57
- node-version : ${{ env.NODE_VERSION }}
55
+ node-version-file : package.json
58
56
59
57
- name : Install Task
60
58
uses : arduino/setup-task@v2
75
73
- name : Setup Node.js
76
74
uses : actions/setup-node@v4
77
75
with :
78
- node-version : ${{ env.NODE_VERSION }}
76
+ node-version-file : package.json
79
77
80
78
- name : Install Task
81
79
uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change
1
+ # See: https://docs.npmjs.com/cli/configuring-npm/npmrc
2
+
3
+ engine-strict = true
Original file line number Diff line number Diff line change 46
46
"strip-json-comments-cli" : " ^3.0.0" ,
47
47
"ts-jest" : " ^28.0.8" ,
48
48
"typescript" : " ^5.5.4"
49
+ },
50
+ "engines" : {
51
+ "node" : " 20.x"
49
52
}
50
53
}
You can’t perform that action at this time.
0 commit comments