File tree Expand file tree Collapse file tree 8 files changed +19
-35
lines changed Expand file tree Collapse file tree 8 files changed +19
-35
lines changed Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-markdown-task.md
22name : Check Markdown
33
4- env :
5- # See: https://github.com/actions/setup-node/#readme
6- NODE_VERSION : 16.x
7-
84# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
95on :
106 create :
7773 - name : Setup Node.js
7874 uses : actions/setup-node@v5
7975 with :
80- node-version : ${{ env.NODE_VERSION }}
76+ node-version-file : package.json
8177
8278 - name : Initialize markdownlint-cli problem matcher
8379 uses : xt0rted/markdownlint-problem-matcher@v3
@@ -105,7 +101,7 @@ jobs:
105101 - name : Setup Node.js
106102 uses : actions/setup-node@v5
107103 with :
108- node-version : ${{ env.NODE_VERSION }}
104+ node-version-file : package.json
109105
110106 - name : Install Task
111107 uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-npm-task.md
22name : Check npm
33
4- env :
5- # See: https://github.com/actions/setup-node/#readme
6- NODE_VERSION : 16.x
7-
84# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
95on :
106 create :
7268 - name : Setup Node.js
7369 uses : actions/setup-node@v5
7470 with :
75- node-version : ${{ env.NODE_VERSION }}
71+ node-version-file : package.json
7672
7773 - name : Install Task
7874 uses : arduino/setup-task@v2
@@ -104,7 +100,7 @@ jobs:
104100 - name : Setup Node.js
105101 uses : actions/setup-node@v5
106102 with :
107- node-version : ${{ env.NODE_VERSION }}
103+ node-version-file : package.json
108104
109105 - name : Install Task
110106 uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-prettier-formatting-task.md
22name : Check Prettier Formatting
33
4- env :
5- # See: https://github.com/actions/setup-node/#readme
6- NODE_VERSION : 16.x
7-
84# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
95on :
106 create :
@@ -245,7 +241,7 @@ jobs:
245241 - name : Setup Node.js
246242 uses : actions/setup-node@v5
247243 with :
248- node-version : ${{ env.NODE_VERSION }}
244+ node-version-file : package.json
249245
250246 - name : Install Task
251247 uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-taskfiles.md
22name : Check Taskfiles
33
4- env :
5- # See: https://github.com/actions/setup-node/#readme
6- NODE_VERSION : 16.x
7-
84# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
95on :
106 create :
7369 - name : Setup Node.js
7470 uses : actions/setup-node@v5
7571 with :
76- node-version : ${{ env.NODE_VERSION }}
72+ node-version-file : package.json
7773
7874 - name : Download JSON schema for Taskfiles
7975 id : download-schema
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/check-toc-task.md
22name : Check ToC
33
4- env :
5- # See: https://github.com/actions/setup-node/#readme
6- NODE_VERSION : 16.x
7-
84# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
95on :
106 create :
7571 - name : Setup Node.js
7672 uses : actions/setup-node@v5
7773 with :
78- node-version : ${{ env.NODE_VERSION }}
74+ node-version-file : package.json
7975
8076 - name : Install Task
8177 uses : arduino/setup-task@v2
Original file line number Diff line number Diff line change 11# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/sync-labels-npm.md
22name : Sync Labels
33
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-
104# See: https://docs.github.com/actions/using-workflows/events-that-trigger-workflows
115on :
126 push :
2721 workflow_dispatch :
2822 repository_dispatch :
2923
24+ env :
25+ CONFIGURATIONS_FOLDER : .github/label-configuration-files
26+ CONFIGURATIONS_ARTIFACT_PREFIX : label-configuration-file-
27+
3028jobs :
3129 check :
3230 runs-on : ubuntu-latest
4038 - name : Setup Node.js
4139 uses : actions/setup-node@v5
4240 with :
43- node-version : ${{ env.NODE_VERSION }}
41+ node-version-file : package.json
4442
4543 - name : Download JSON schema for labels configuration file
4644 id : download-schema
@@ -139,7 +137,7 @@ jobs:
139137 - name : Setup Node.js
140138 uses : actions/setup-node@v5
141139 with :
142- node-version : ${{ env.NODE_VERSION }}
140+ node-version-file : package.json
143141
144142 - name : Merge label configuration files
145143 run : |
Original file line number Diff line number Diff line change 77 "markdown-toc" : " 1.2.0" ,
88 "markdownlint-cli" : " 0.37.0" ,
99 "prettier" : " 3.6.2"
10+ },
11+ "engines" : {
12+ "node" : " 16.x"
1013 }
1114}
You can’t perform that action at this time.
0 commit comments