3939
4040 steps :
4141 - name : Harden the runner (Audit all outbound calls)
42- uses : step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
42+ uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
4343 with :
4444 egress-policy : audit
4545
5757 env :
5858 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5959 with :
60- node-version : ' 20 '
60+ node-version-file : package.json
6161 registry-url : https://npm.pkg.github.com
6262 package-manager-cache : false
6363
7777 run : npm run build
7878
7979 - name : Update current version
80+ if : github.event_name != 'release'
8081 run : |
8182 # Increment patch version by 1 (e.g. 1.64.1 -> 1.64.2)
8283 BASE_VERSION=$(node -p "require('./package.json').version.split('-')[0]")
@@ -102,12 +103,12 @@ jobs:
102103 # Get short commit SHA
103104 SHORT_SHA=$(git rev-parse --short HEAD)
104105
105- # Create nightly version: 1.64.2-12-abc1234
106- NIGHTLY_VERSION ="${NEXT_PATCH_VERSION}-${COMMIT_COUNT}-${SHORT_SHA}"
107- echo "Setting version to ${NIGHTLY_VERSION }"
106+ # Create PR version: 1.64.2-12-abc1234
107+ PR_VERSION ="${NEXT_PATCH_VERSION}-${COMMIT_COUNT}-${SHORT_SHA}"
108+ echo "Setting version to ${PR_VERSION }"
108109
109110 # Update package.json
110- npm version "${NIGHTLY_VERSION }" --no-git-tag-version
111+ npm version "${PR_VERSION }" --no-git-tag-version
111112
112113 - name : Remove badges
113114 run : |
@@ -174,42 +175,42 @@ jobs:
174175 run : npm run package -- --target darwin-arm64
175176
176177 - name : Upload win32-x64 VSIX package
177- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
178+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
178179 with :
179180 name : vscode-cmsis-solution-win32-x64
180181 path : ./*win32-x64*.vsix
181182 retention-days : 1
182183
183184 - name : Upload win32-arm64 VSIX package
184- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
185+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
185186 with :
186187 name : vscode-cmsis-solution-win32-arm64
187188 path : ./*win32-arm64*.vsix
188189 retention-days : 1
189190
190191 - name : Upload linux-x64 VSIX package
191- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
192+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
192193 with :
193194 name : vscode-cmsis-solution-linux-x64
194195 path : ./*linux-x64*.vsix
195196 retention-days : 1
196197
197198 - name : Upload linux-arm64 VSIX package
198- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
199+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
199200 with :
200201 name : vscode-cmsis-solution-linux-arm64
201202 path : ./*linux-arm64*.vsix
202203 retention-days : 1
203204
204205 - name : Upload darwin-x64 VSIX package
205- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
206+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
206207 with :
207208 name : vscode-cmsis-solution-darwin-x64
208209 path : ./*darwin-x64*.vsix
209210 retention-days : 1
210211
211212 - name : Upload darwin-arm64 VSIX package
212- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
213+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
213214 with :
214215 name : vscode-cmsis-solution-darwin-arm64
215216 path : ./*darwin-arm64*.vsix
@@ -219,7 +220,7 @@ jobs:
219220 run : git diff > new-version.patch
220221
221222 - name : Store version bump patch
222- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
223+ uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
223224 with :
224225 name : new-version-patch
225226 path : ./new-version.patch
@@ -249,7 +250,7 @@ jobs:
249250
250251 steps :
251252 - name : Harden the runner (Audit all outbound calls)
252- uses : step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
253+ uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
253254 with :
254255 egress-policy : audit
255256
@@ -264,7 +265,7 @@ jobs:
264265 env :
265266 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
266267 with :
267- node-version : ' 20 '
268+ node-version-file : package.json
268269 registry-url : https://npm.pkg.github.com
269270 package-manager-cache : false
270271
@@ -277,15 +278,15 @@ jobs:
277278 - name : Run Test
278279 run : npm run test
279280
280- - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
281+ - uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
281282 if : ${{ matrix.target == 'linux-x64' }}
282283 with :
283284 name : unit-test-coverage
284285 path : ./coverage
285286
286287 - name : Publish coverage report to QLTY
287288 if : github.repository_owner == 'Open-CMSIS-Pack' && matrix.target == 'linux-x64'
288- uses : qltysh/qlty-action/coverage@a19242102d17e497f437d7466aa01b528537e899 # v1
289+ uses : qltysh/qlty-action/coverage@a19242102d17e497f437d7466aa01b528537e899 # v2.2.0
289290 with :
290291 token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
291292 files : coverage/lcov.info
@@ -299,7 +300,7 @@ jobs:
299300 contents : write
300301 steps :
301302 - name : Harden the runner (Audit all outbound calls)
302- uses : step-security/harden-runner@58077d3c7e43986b6b15fba718e8ea69e387dfcc # v2.15.1
303+ uses : step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
303304 with :
304305 egress-policy : audit
305306
@@ -314,22 +315,8 @@ jobs:
314315 pattern : unit-test-coverage
315316 path : test-coverage
316317
317- - name : Download test report
318- uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
319- with :
320- pattern : test-report-linux
321- path : test-report-linux
322-
323- - name : Zip test report
324- run : zip -r test-report.zip *
325- working-directory : test-report-linux
326-
327- - name : Zip test coverage
328- run : zip -r test-coverage.zip *
329- working-directory : test-coverage
330-
331318 - name : Attach packages
332- uses : softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
319+ uses : softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
333320 with :
334321 files : |
335322 **/*.vsix
0 commit comments