semantic-release-vsce 6.0.5 → 6.0.7

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 CHANGED
@@ -214,7 +214,7 @@ jobs:
214
214
  'semantic-release-vsce',
215
215
  {
216
216
  packageVsix: true,
217
- publish: false, // no-op since we use semantic-release-stop-before-publish
217
+ publish: false,
218
218
  },
219
219
  ],
220
220
  'semantic-release-stop-before-publish',
@@ -276,7 +276,7 @@ jobs:
276
276
  npm_config_arch: x64
277
277
  - os: windows-latest
278
278
  target: win32-arm64
279
- npm_config_arch: arm
279
+ npm_config_arch: arm64
280
280
  - os: ubuntu-latest
281
281
  target: linux-x64
282
282
  npm_config_arch: x64
@@ -301,6 +301,12 @@ jobs:
301
301
  - os: ubuntu-latest
302
302
  target: universal
303
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
304
310
  steps:
305
311
  - uses: actions/checkout@v4
306
312
  - uses: actions/setup-node@v4
@@ -317,16 +323,20 @@ jobs:
317
323
  - run: npx semantic-release --extends ./package.release.config.js
318
324
  env:
319
325
  VSCE_TARGET: ${{ matrix.target }}
320
- # All tokens are required since semantic-release needs to validate them
321
326
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
322
- # In case you want to publish to Visual Studio Marketplace
323
- VSCE_PAT: ${{ secrets.VSCE_PAT }}
324
- # In case you want to publish to Open VSX Registry
325
- OVSX_PAT: ${{ secrets.OVSX_PAT }}
326
327
  - uses: actions/upload-artifact@v4
327
328
  with:
328
329
  name: ${{ matrix.target }}
329
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
330
340
 
331
341
  release:
332
342
  runs-on: ubuntu-latest
package/lib/prepare.js CHANGED
@@ -4,7 +4,7 @@ import { execa } from 'execa';
4
4
  import { readJson } from 'fs-extra/esm';
5
5
  import path from 'node:path';
6
6
  import process from 'node:process';
7
- import { isOvsxPublishEnabled, isTargetEnabled } from './utils.js';
7
+ import { isOvsxPublishEnabled, isTargetEnabled } from './utilities.js';
8
8
 
9
9
  export async function prepare(version, packageVsix, logger, cwd) {
10
10
  if (packageVsix === false) {
package/lib/publish.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  isOvsxPublishEnabled,
10
10
  isTargetEnabled,
11
11
  isVscePublishEnabled,
12
- } from './utils.js';
12
+ } from './utilities.js';
13
13
 
14
14
  export async function publish(version, packagePath, logger, cwd) {
15
15
  const { publisher, name } = await readJson(path.join(cwd, './package.json'));
@@ -2,7 +2,7 @@
2
2
 
3
3
  import SemanticReleaseError from '@semantic-release/error';
4
4
  import process from 'node:process';
5
- import { isTargetEnabled } from './utils.js';
5
+ import { isTargetEnabled } from './utilities.js';
6
6
 
7
7
  export async function verifyTarget() {
8
8
  if (!isTargetEnabled()) {
@@ -3,7 +3,7 @@
3
3
  import SemanticReleaseError from '@semantic-release/error';
4
4
  import { execa } from 'execa';
5
5
  import process from 'node:process';
6
- import { isAzureCredentialEnabled } from './utils.js';
6
+ import { isAzureCredentialEnabled } from './utilities.js';
7
7
 
8
8
  export async function verifyVsceAuth(logger, cwd) {
9
9
  const pat = 'VSCE_PAT' in process.env && process.env.VSCE_PAT;
package/lib/verify.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-check
2
2
 
3
3
  import SemanticReleaseError from '@semantic-release/error';
4
- import { isOvsxPublishEnabled, isVscePublishEnabled } from './utils.js';
4
+ import { isOvsxPublishEnabled, isVscePublishEnabled } from './utilities.js';
5
5
  import { verifyOvsxAuth } from './verify-ovsx-auth.js';
6
6
  import { verifyPackage } from './verify-package.js';
7
7
  import { verifyTarget } from './verify-target.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semantic-release-vsce",
3
- "version": "6.0.5",
3
+ "version": "6.0.7",
4
4
  "description": "semantic-release plugin to package and publish VS Code extensions",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,8 +47,8 @@
47
47
  ]
48
48
  },
49
49
  "volta": {
50
- "node": "22.12.0",
51
- "npm": "11.0.0"
50
+ "node": "22.14.0",
51
+ "npm": "11.2.0"
52
52
  },
53
53
  "dependencies": {
54
54
  "@semantic-release/error": "^4.0.0",
@@ -66,7 +66,7 @@
66
66
  "c8": "^10.1.3",
67
67
  "conventional-changelog-conventionalcommits": "^8.0.0",
68
68
  "eslint": "^9.12.0",
69
- "eslint-plugin-unicorn": "^56.0.1",
69
+ "eslint-plugin-unicorn": "^57.0.0",
70
70
  "esmock": "^2.6.9",
71
71
  "husky": "^9.0.11",
72
72
  "installed-check": "^9.0.0",
File without changes