File tree Expand file tree Collapse file tree 10 files changed +21
-45
lines changed Expand file tree Collapse file tree 10 files changed +21
-45
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-action-metadata-task.md
2
2
name : Check Action Metadata
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
create :
67
63
- name : Setup Node.js
68
64
uses : actions/setup-node@v5
69
65
with :
70
- node-version : ${{ env.NODE_VERSION }}
66
+ node-version-file : package.json
71
67
72
68
- name : Install Task
73
69
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/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-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
create :
72
68
- name : Setup Node.js
73
69
uses : actions/setup-node@v5
74
70
with :
75
- node-version : ${{ env.NODE_VERSION }}
71
+ node-version-file : package.json
76
72
77
73
- name : Install Task
78
74
uses : arduino/setup-task@v2
@@ -104,7 +100,7 @@ jobs:
104
100
- name : Setup Node.js
105
101
uses : actions/setup-node@v5
106
102
with :
107
- node-version : ${{ env.NODE_VERSION }}
103
+ node-version-file : package.json
108
104
109
105
- name : Install Task
110
106
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 :
@@ -245,7 +241,7 @@ jobs:
245
241
- name : Setup Node.js
246
242
uses : actions/setup-node@v5
247
243
with :
248
- node-version : ${{ env.NODE_VERSION }}
244
+ node-version-file : package.json
249
245
250
246
- name : Install Task
251
247
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 :
73
69
- name : Setup Node.js
74
70
uses : actions/setup-node@v5
75
71
with :
76
- node-version : ${{ env.NODE_VERSION }}
72
+ node-version-file : package.json
77
73
78
74
- name : Download JSON schema for Taskfiles
79
75
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-toc-task.md
2
2
name : Check ToC
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 :
75
71
- name : Setup Node.js
76
72
uses : actions/setup-node@v5
77
73
with :
78
- node-version : ${{ env.NODE_VERSION }}
74
+ node-version-file : package.json
79
75
80
76
- name : Install Task
81
77
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-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
@@ -139,7 +137,7 @@ jobs:
139
137
- name : Setup Node.js
140
138
uses : actions/setup-node@v5
141
139
with :
142
- node-version : ${{ env.NODE_VERSION }}
140
+ node-version-file : package.json
143
141
144
142
- name : Merge label configuration files
145
143
run : |
Original file line number Diff line number Diff line change 7
7
"markdown-toc" : " 1.2.0" ,
8
8
"markdownlint-cli" : " 0.37.0" ,
9
9
"prettier" : " 3.6.2"
10
+ },
11
+ "engines" : {
12
+ "node" : " 16.x"
10
13
}
11
14
}
You can’t perform that action at this time.
0 commit comments