File tree Expand file tree Collapse file tree 7 files changed +17
-29
lines changed Expand file tree Collapse file tree 7 files changed +17
-29
lines changed 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/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
create :
77
73
- name : Setup Node.js
78
74
uses : actions/setup-node@v5
79
75
with :
80
- node-version : ${{ env.NODE_VERSION }}
76
+ node-version-file : package.json
81
77
82
78
- name : Initialize markdownlint-cli problem matcher
83
79
uses : xt0rted/markdownlint-problem-matcher@v3
@@ -105,7 +101,7 @@ jobs:
105
101
- name : Setup Node.js
106
102
uses : actions/setup-node@v5
107
103
with :
108
- node-version : ${{ env.NODE_VERSION }}
104
+ node-version-file : package.json
109
105
110
106
- name : Install Task
111
107
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 : 16.x
7
-
8
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
create :
@@ -242,7 +238,7 @@ jobs:
242
238
- name : Setup Node.js
243
239
uses : actions/setup-node@v5
244
240
with :
245
- node-version : ${{ env.NODE_VERSION }}
241
+ node-version-file : package.json
246
242
247
243
- name : Install Task
248
244
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-taskfiles.md
2
2
name : Check Taskfiles
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/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
create :
77
73
- name : Setup Node.js
78
74
uses : actions/setup-node@v5
79
75
with :
80
- node-version : ${{ env.NODE_VERSION }}
76
+ node-version-file : package.json
81
77
82
78
- name : Download JSON schema for Taskfiles
83
79
id : download-schema
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-workflows-task.md
2
2
name : Check Workflows
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/actions/using-workflows/events-that-trigger-workflows
9
5
on :
10
6
push :
38
34
- name : Setup Node.js
39
35
uses : actions/setup-node@v5
40
36
with :
41
- node-version : ${{ env.NODE_VERSION }}
37
+ node-version-file : package.json
42
38
43
39
- name : Install Task
44
40
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/sync-labels-npm.md
2
2
name : Sync Labels
3
3
4
- env :
5
- # See: https://github.com/actions/setup-node/#readme
6
- NODE_VERSION : 16.x
7
- CONFIGURATIONS_FOLDER : .github/label-configuration-files
8
- CONFIGURATIONS_ARTIFACT_PREFIX : label-configuration-file-
9
-
10
4
# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
11
5
on :
12
6
push :
27
21
workflow_dispatch :
28
22
repository_dispatch :
29
23
24
+ env :
25
+ CONFIGURATIONS_FOLDER : .github/label-configuration-files
26
+ CONFIGURATIONS_ARTIFACT_PREFIX : label-configuration-file-
27
+
30
28
jobs :
31
29
check :
32
30
runs-on : ubuntu-latest
40
38
- name : Setup Node.js
41
39
uses : actions/setup-node@v5
42
40
with :
43
- node-version : ${{ env.NODE_VERSION }}
41
+ node-version-file : package.json
44
42
45
43
- name : Download JSON schema for labels configuration file
46
44
id : download-schema
@@ -138,7 +136,7 @@ jobs:
138
136
- name : Setup Node.js
139
137
uses : actions/setup-node@v5
140
138
with :
141
- node-version : ${{ env.NODE_VERSION }}
139
+ node-version-file : package.json
142
140
143
141
- name : Merge label configuration files
144
142
run : |
Original file line number Diff line number Diff line change 6
6
"markdown-link-check" : " ^3.13.7" ,
7
7
"markdownlint-cli" : " ^0.37.0" ,
8
8
"prettier" : " ^3.6.2"
9
+ },
10
+ "engines" : {
11
+ "node" : " 16.x"
9
12
}
10
13
}
You can’t perform that action at this time.
0 commit comments