bulk-release 2.18.3 → 2.19.1
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/CHANGELOG.md +13 -0
- package/package.json +1 -1
- package/src/main/js/api/npm.js +5 -0
- package/src/main/js/config.js +7 -5
- package/src/main/js/processor/release.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [2.19.1](https://github.com/semrel-extra/zx-bulk-release/compare/v2.19.0...v2.19.1) (2026-04-05)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* fix: handle meta=none ([4bd052d](https://github.com/semrel-extra/zx-bulk-release/commit/4bd052d4deb3a2a6a6862860e7dabd205275fbcc))
|
|
5
|
+
|
|
6
|
+
## [2.19.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.18.3...v2.19.0) (2026-04-05)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
* feat: assert npm version for npm oidc flow ([647c612](https://github.com/semrel-extra/zx-bulk-release/commit/647c612f5ced01c8230ae1f625bbb6920f1e789d))
|
|
10
|
+
|
|
11
|
+
### Fixes & improvements
|
|
12
|
+
* fix: enable --debug info strem ([3a8ef02](https://github.com/semrel-extra/zx-bulk-release/commit/3a8ef02974a7b7a1fd8624041a37a2203cd6ec56))
|
|
13
|
+
|
|
1
14
|
## [2.18.3](https://github.com/semrel-extra/zx-bulk-release/compare/v2.18.2...v2.18.3) (2026-04-05)
|
|
2
15
|
|
|
3
16
|
### Fixes & improvements
|
package/package.json
CHANGED
package/src/main/js/api/npm.js
CHANGED
|
@@ -86,6 +86,11 @@ export const npmPublish = async (pkg) => {
|
|
|
86
86
|
// OIDC trusted publishing: no auth token must be present for npm to use OIDC flow.
|
|
87
87
|
// https://docs.npmjs.com/trusted-publishers/
|
|
88
88
|
if (npmOidc) {
|
|
89
|
+
const npmVersion = (await $`npm --version`).toString().trim()
|
|
90
|
+
const [major, minor] = npmVersion.split('.').map(Number)
|
|
91
|
+
if (major < 11 || (major === 11 && minor < 5)) {
|
|
92
|
+
throw new Error(`npm OIDC trusted publishing requires npm >= 11.5.0, got ${npmVersion}`)
|
|
93
|
+
}
|
|
89
94
|
log({pkg})('npm publish: OIDC trusted publishing enabled')
|
|
90
95
|
npmFlags.push('--provenance')
|
|
91
96
|
} else {
|
package/src/main/js/config.js
CHANGED
|
@@ -50,11 +50,13 @@ export const normalizePkgConfig = (config, env) => {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export const normalizeMetaConfig = (meta) =>
|
|
53
|
-
meta ===
|
|
54
|
-
?
|
|
55
|
-
:
|
|
56
|
-
?
|
|
57
|
-
:
|
|
53
|
+
meta === false || meta === 'none'
|
|
54
|
+
? { type: null }
|
|
55
|
+
: meta === true
|
|
56
|
+
? normalizeMetaConfig('commit')
|
|
57
|
+
: typeof meta === 'string'
|
|
58
|
+
? { type: meta } // 'commit' | 'asset' | 'tag'
|
|
59
|
+
: { type: null }
|
|
58
60
|
|
|
59
61
|
export const parseEnv = ({GH_USER, GH_USERNAME, GH_META, GITHUB_USER, GITHUB_USERNAME, GH_TOKEN, GITHUB_TOKEN, NPM_TOKEN, NPM_REGISTRY, NPMRC, NPM_USERCONFIG, NPM_CONFIG_USERCONFIG, NPM_PROVENANCE, NPM_OIDC, ACTIONS_ID_TOKEN_REQUEST_URL, GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL} = process.env) =>
|
|
60
62
|
({
|