zx-bulk-release 2.2.2 → 2.2.4
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 +10 -0
- package/package.json +1 -1
- package/src/main/js/config.js +2 -0
- package/src/main/js/git.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.2.4](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.3...v2.2.4) (2023-03-24)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* fix: add debug notes ([3cf101b](https://github.com/semrel-extra/zx-bulk-release/commit/3cf101b3330a5b0415684d9c3b097bb1832b4365))
|
|
5
|
+
|
|
6
|
+
## [2.2.3](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.2...v2.2.3) (2023-03-24)
|
|
7
|
+
|
|
8
|
+
### Fixes & improvements
|
|
9
|
+
* fix: debug ([c1699e6](https://github.com/semrel-extra/zx-bulk-release/commit/c1699e6c7d8bbc180c4ef17dfdb9f25816814578))
|
|
10
|
+
|
|
1
11
|
## [2.2.2](https://github.com/semrel-extra/zx-bulk-release/compare/v2.2.1...v2.2.2) (2023-03-24)
|
|
2
12
|
|
|
3
13
|
### Fixes & improvements
|
package/package.json
CHANGED
package/src/main/js/config.js
CHANGED
|
@@ -34,6 +34,8 @@ export const normalizePkgConfig = (config, env) => ({
|
|
|
34
34
|
npmFetch: config.npmFetch || config.fetch || config.fetchPkg,
|
|
35
35
|
buildCmd: config.buildCmd || config.cmd,
|
|
36
36
|
get ghBasicAuth() {
|
|
37
|
+
console.log('this.ghToken', !!this.ghToken)
|
|
38
|
+
console.log('this.ghUser', !!this.ghUser)
|
|
37
39
|
return this.ghUser && this.ghToken ? `${this.ghUser}:${this.ghToken}` : false
|
|
38
40
|
}
|
|
39
41
|
})
|
package/src/main/js/git.js
CHANGED
|
@@ -68,7 +68,9 @@ export const getRepo = async (_cwd, {basicAuth} = {}) => {
|
|
|
68
68
|
const cwd = await getRoot(_cwd)
|
|
69
69
|
if (repos[cwd]) return repos[cwd]
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
const e = new Error()
|
|
72
|
+
console.log('!!! has basic auth', !!basicAuth, e.stack)
|
|
73
|
+
|
|
72
74
|
const originUrl = await getOrigin(cwd)
|
|
73
75
|
const [, , repoHost, repoName] = originUrl.replace(':', '/').replace(/\.git/, '').match(/.+(@|\/\/)([^/]+)\/(.+)$/) || []
|
|
74
76
|
const repoPublicUrl = `https://${repoHost}/${repoName}`
|