@@ -125,3 +125,45 @@ jobs:
125
125
--color \
126
126
--exit-code \
127
127
"${{ matrix.project.path }}/package-lock.json"
128
+
129
+ check-config :
130
+ name : check-config (${{ matrix.project.path }})
131
+ needs : run-determination
132
+ if : needs.run-determination.outputs.result == 'true'
133
+ runs-on : ubuntu-latest
134
+ permissions :
135
+ contents : read
136
+
137
+ strategy :
138
+ fail-fast : false
139
+ matrix :
140
+ project :
141
+ # TODO: add paths of all npm-managed projects in the repository here.
142
+ - path : .
143
+
144
+ steps :
145
+ - name : Checkout repository
146
+ uses : actions/checkout@v5
147
+
148
+ - name : Setup Node.js
149
+ uses : actions/setup-node@v4
150
+ with :
151
+ node-version-file : " ${{ matrix.project.path }}/package.json"
152
+
153
+ - name : Install Task
154
+ uses : arduino/setup-task@v2
155
+ with :
156
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
157
+ version : 3.x
158
+
159
+ - name : Fix problems in npm configuration file
160
+ run : |
161
+ task npm:fix-config \
162
+ PROJECT_PATH="${{ matrix.project.path }}"
163
+
164
+ - name : Check if fixes are needed in npm configuration file
165
+ run : |
166
+ git diff \
167
+ --color \
168
+ --exit-code \
169
+ "${{ matrix.project.path }}/.npmrc"
0 commit comments