bulk-release 2.18.2 → 2.18.3
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 +5 -0
- package/package.json +1 -1
- package/src/main/js/config.js +1 -1
- package/src/main/js/steps/contextify.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [2.18.3](https://github.com/semrel-extra/zx-bulk-release/compare/v2.18.2...v2.18.3) (2026-04-05)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* fix: use default gh username ([5f3ae20](https://github.com/semrel-extra/zx-bulk-release/commit/5f3ae20f4977b8c1f1d09a7367d15d78c211e6a8))
|
|
5
|
+
|
|
1
6
|
## [2.18.2](https://github.com/semrel-extra/zx-bulk-release/compare/v2.18.1...v2.18.2) (2026-04-05)
|
|
2
7
|
|
|
3
8
|
### Fixes & improvements
|
package/package.json
CHANGED
package/src/main/js/config.js
CHANGED
|
@@ -58,7 +58,7 @@ export const normalizeMetaConfig = (meta) =>
|
|
|
58
58
|
|
|
59
59
|
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
60
|
({
|
|
61
|
-
ghUser: GH_USER || GH_USERNAME || GITHUB_USER || GITHUB_USERNAME,
|
|
61
|
+
ghUser: GH_USER || GH_USERNAME || GITHUB_USER || GITHUB_USERNAME || ((GH_TOKEN || GITHUB_TOKEN) ? 'x-access-token' : undefined),
|
|
62
62
|
ghToken: GH_TOKEN || GITHUB_TOKEN,
|
|
63
63
|
ghMeta: GH_META,
|
|
64
64
|
npmConfig: NPMRC || NPM_USERCONFIG || NPM_CONFIG_USERCONFIG,
|
|
@@ -29,6 +29,7 @@ export const rollbackRelease = async (pkg) => {
|
|
|
29
29
|
|
|
30
30
|
const cwd = pkg.context.git.root
|
|
31
31
|
const {ghBasicAuth: basicAuth, ghToken, gitCommitterName, gitCommitterEmail} = pkg.config
|
|
32
|
+
if (!basicAuth) throw new Error('rollback requires git credentials (GH_TOKEN)')
|
|
32
33
|
const {repoName} = await getRepo(cwd, {basicAuth})
|
|
33
34
|
|
|
34
35
|
log({pkg})(`rollback: cleaning up failed release for tag '${tag}'`)
|
|
@@ -98,6 +99,7 @@ export const recover = async (pkg) => {
|
|
|
98
99
|
|
|
99
100
|
const cwd = await getRoot(pkg.absPath)
|
|
100
101
|
const {ghBasicAuth: basicAuth, ghToken, gitCommitterName, gitCommitterEmail} = pkg.config
|
|
102
|
+
if (!basicAuth) throw new Error('recover requires git credentials (GH_TOKEN)')
|
|
101
103
|
const {repoName} = await getRepo(cwd, {basicAuth})
|
|
102
104
|
|
|
103
105
|
log({pkg})(`recover: tag '${tag.ref}' exists but ${pkg.name}@${tag.version} not found on npm, rolling back failed release`)
|