semantic-release-vsce 6.0.4 → 6.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -42
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -158,17 +158,26 @@ name: release
|
|
|
158
158
|
|
|
159
159
|
on:
|
|
160
160
|
push:
|
|
161
|
-
branches:
|
|
161
|
+
branches:
|
|
162
|
+
- master
|
|
163
|
+
|
|
164
|
+
permissions:
|
|
165
|
+
contents: read # for checkout
|
|
162
166
|
|
|
163
167
|
jobs:
|
|
164
168
|
release:
|
|
165
169
|
runs-on: ubuntu-latest
|
|
170
|
+
permissions:
|
|
171
|
+
contents: write # to be able to publish a GitHub release
|
|
172
|
+
issues: write # to be able to comment on released issues
|
|
173
|
+
pull-requests: write # to be able to comment on released pull requests
|
|
166
174
|
steps:
|
|
167
|
-
- uses: actions/checkout@
|
|
168
|
-
- uses: actions/setup-node@
|
|
175
|
+
- uses: actions/checkout@v4
|
|
176
|
+
- uses: actions/setup-node@v4
|
|
169
177
|
with:
|
|
170
|
-
node-version:
|
|
178
|
+
node-version: 22
|
|
171
179
|
- run: npm ci
|
|
180
|
+
- run: npm audit signatures
|
|
172
181
|
- run: npx semantic-release
|
|
173
182
|
env:
|
|
174
183
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -205,7 +214,7 @@ jobs:
|
|
|
205
214
|
'semantic-release-vsce',
|
|
206
215
|
{
|
|
207
216
|
packageVsix: true,
|
|
208
|
-
publish: false,
|
|
217
|
+
publish: false,
|
|
209
218
|
},
|
|
210
219
|
],
|
|
211
220
|
'semantic-release-stop-before-publish',
|
|
@@ -228,13 +237,13 @@ jobs:
|
|
|
228
237
|
'semantic-release-vsce',
|
|
229
238
|
{
|
|
230
239
|
packageVsix: false,
|
|
231
|
-
publishPackagePath: '
|
|
240
|
+
publishPackagePath: '*.vsix',
|
|
232
241
|
},
|
|
233
242
|
],
|
|
234
243
|
[
|
|
235
244
|
'@semantic-release/github',
|
|
236
245
|
{
|
|
237
|
-
assets: '
|
|
246
|
+
assets: '*.vsix',
|
|
238
247
|
},
|
|
239
248
|
],
|
|
240
249
|
],
|
|
@@ -251,7 +260,11 @@ name: ci
|
|
|
251
260
|
|
|
252
261
|
on:
|
|
253
262
|
push:
|
|
254
|
-
branches:
|
|
263
|
+
branches:
|
|
264
|
+
- master
|
|
265
|
+
|
|
266
|
+
permissions:
|
|
267
|
+
contents: read # for checkout
|
|
255
268
|
|
|
256
269
|
jobs:
|
|
257
270
|
build:
|
|
@@ -263,7 +276,7 @@ jobs:
|
|
|
263
276
|
npm_config_arch: x64
|
|
264
277
|
- os: windows-latest
|
|
265
278
|
target: win32-arm64
|
|
266
|
-
npm_config_arch:
|
|
279
|
+
npm_config_arch: arm64
|
|
267
280
|
- os: ubuntu-latest
|
|
268
281
|
target: linux-x64
|
|
269
282
|
npm_config_arch: x64
|
|
@@ -276,6 +289,9 @@ jobs:
|
|
|
276
289
|
- os: ubuntu-latest
|
|
277
290
|
target: alpine-x64
|
|
278
291
|
npm_config_arch: x64
|
|
292
|
+
- os: ubuntu-latest
|
|
293
|
+
target: alpine-arm64
|
|
294
|
+
npm_config_arch: arm64
|
|
279
295
|
- os: macos-latest
|
|
280
296
|
target: darwin-x64
|
|
281
297
|
npm_config_arch: x64
|
|
@@ -285,52 +301,60 @@ jobs:
|
|
|
285
301
|
- os: ubuntu-latest
|
|
286
302
|
target: universal
|
|
287
303
|
runs-on: ${{ matrix.os }}
|
|
304
|
+
# Even though semantic-release will not publish anything, it still needs to
|
|
305
|
+
# validate the GITHUB_TOKEN
|
|
306
|
+
permissions:
|
|
307
|
+
contents: write # to be able to publish a GitHub release
|
|
308
|
+
issues: write # to be able to comment on released issues
|
|
309
|
+
pull-requests: write # to be able to comment on released pull requests
|
|
288
310
|
steps:
|
|
289
|
-
- uses: actions/checkout@
|
|
290
|
-
|
|
291
|
-
- uses: actions/setup-node@v3
|
|
311
|
+
- uses: actions/checkout@v4
|
|
312
|
+
- uses: actions/setup-node@v4
|
|
292
313
|
with:
|
|
293
|
-
node-version:
|
|
294
|
-
|
|
314
|
+
node-version: 22
|
|
295
315
|
- if: matrix.target != 'universal'
|
|
296
316
|
name: Install dependencies (with binaries)
|
|
297
317
|
run: npm ci
|
|
298
318
|
env:
|
|
299
319
|
npm_config_arch: ${{ matrix.npm_config_arch }}
|
|
300
|
-
|
|
301
320
|
- if: matrix.target == 'universal'
|
|
302
321
|
name: Install dependencies (without binaries)
|
|
303
322
|
run: npm ci
|
|
304
|
-
|
|
305
323
|
- run: npx semantic-release --extends ./package.release.config.js
|
|
306
324
|
env:
|
|
307
325
|
VSCE_TARGET: ${{ matrix.target }}
|
|
308
|
-
# All tokens are required since semantic-release needs to validate them
|
|
309
326
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
310
|
-
|
|
311
|
-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
|
|
312
|
-
# In case you want to publish to Open VSX Registry
|
|
313
|
-
OVSX_PAT: ${{ secrets.OVSX_PAT }}
|
|
314
|
-
|
|
315
|
-
- uses: actions/upload-artifact@v3
|
|
327
|
+
- uses: actions/upload-artifact@v4
|
|
316
328
|
with:
|
|
317
329
|
name: ${{ matrix.target }}
|
|
318
330
|
path: '*.vsix'
|
|
331
|
+
# vsce updates the version in package.json and package-lock.json during
|
|
332
|
+
# package step, so we need to save them for the publish step
|
|
333
|
+
- if: matrix.target == 'universal'
|
|
334
|
+
uses: actions/upload-artifact@v4
|
|
335
|
+
with:
|
|
336
|
+
name: package-json
|
|
337
|
+
path: |
|
|
338
|
+
package.json
|
|
339
|
+
package-lock.json
|
|
319
340
|
|
|
320
341
|
release:
|
|
321
342
|
runs-on: ubuntu-latest
|
|
322
343
|
needs: build
|
|
344
|
+
permissions:
|
|
345
|
+
contents: write # to be able to publish a GitHub release
|
|
346
|
+
issues: write # to be able to comment on released issues
|
|
347
|
+
pull-requests: write # to be able to comment on released pull requests
|
|
323
348
|
steps:
|
|
324
|
-
- uses: actions/checkout@
|
|
325
|
-
|
|
326
|
-
- uses: actions/setup-node@v3
|
|
349
|
+
- uses: actions/checkout@v4
|
|
350
|
+
- uses: actions/download-artifact@v4
|
|
327
351
|
with:
|
|
328
|
-
|
|
329
|
-
|
|
352
|
+
merge-multiple: true
|
|
353
|
+
- uses: actions/setup-node@v4
|
|
354
|
+
with:
|
|
355
|
+
node-version: 22
|
|
330
356
|
- run: npm ci
|
|
331
|
-
|
|
332
|
-
- uses: actions/download-artifact@v3
|
|
333
|
-
|
|
357
|
+
- run: npm audit signatures
|
|
334
358
|
- run: npx semantic-release --extends ./publish.release.config.js
|
|
335
359
|
env:
|
|
336
360
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -347,26 +371,31 @@ name: release
|
|
|
347
371
|
|
|
348
372
|
on:
|
|
349
373
|
push:
|
|
350
|
-
branches:
|
|
374
|
+
branches:
|
|
375
|
+
- master
|
|
376
|
+
|
|
377
|
+
permissions:
|
|
378
|
+
contents: read # for checkout
|
|
351
379
|
|
|
352
380
|
jobs:
|
|
353
381
|
release:
|
|
354
382
|
runs-on: ubuntu-latest
|
|
383
|
+
permissions:
|
|
384
|
+
contents: write # to be able to publish a GitHub release
|
|
385
|
+
issues: write # to be able to comment on released issues
|
|
386
|
+
pull-requests: write # to be able to comment on released pull requests
|
|
355
387
|
steps:
|
|
356
|
-
- uses: actions/checkout@
|
|
357
|
-
- uses:
|
|
358
|
-
with:
|
|
359
|
-
node-version: 16
|
|
360
|
-
- run: npm ci
|
|
361
|
-
|
|
362
|
-
# Log into Azure CLI to get VSCE credentials
|
|
363
|
-
- name: Azure login
|
|
364
|
-
uses: azure/login@v2
|
|
388
|
+
- uses: actions/checkout@v4
|
|
389
|
+
- uses: azure/login@v2
|
|
365
390
|
with:
|
|
366
391
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
|
367
392
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
|
368
393
|
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
|
|
369
|
-
|
|
394
|
+
- uses: actions/setup-node@v4
|
|
395
|
+
with:
|
|
396
|
+
node-version: 22
|
|
397
|
+
- run: npm ci
|
|
398
|
+
- run: npm audit signatures
|
|
370
399
|
- run: npx semantic-release
|
|
371
400
|
env:
|
|
372
401
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semantic-release-vsce",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "semantic-release plugin to package and publish VS Code extensions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"volta": {
|
|
50
|
-
"node": "22.
|
|
50
|
+
"node": "22.13.0",
|
|
51
51
|
"npm": "11.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|