bulk-release 2.9.1 → 2.9.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 +10 -0
- package/package.json +2 -2
- package/src/main/js/gh.js +5 -2
- package/src/main/js/processor.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.9.3](https://github.com/semrel-extra/zx-bulk-release/compare/v2.9.2...v2.9.3) (2023-06-27)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* perf: print gh release url in log ([08edaef](https://github.com/semrel-extra/zx-bulk-release/commit/08edaef76e67a7b7109c9fa1e1f0140f5e932d3b))
|
|
5
|
+
|
|
6
|
+
## [2.9.2](https://github.com/semrel-extra/zx-bulk-release/compare/v2.9.1...v2.9.2) (2023-06-10)
|
|
7
|
+
|
|
8
|
+
### Fixes & improvements
|
|
9
|
+
* fix: respect --no-prefixed flags ([57c42a9](https://github.com/semrel-extra/zx-bulk-release/commit/57c42a97718cb594da5c90199706a71919e49e1e))
|
|
10
|
+
|
|
1
11
|
## [2.9.1](https://github.com/semrel-extra/zx-bulk-release/compare/v2.9.0...v2.9.1) (2023-06-09)
|
|
2
12
|
|
|
3
13
|
### Fixes & improvements
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bulk-release",
|
|
3
3
|
"alias": "bulk-release",
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.3",
|
|
5
5
|
"description": "zx-based alternative for multi-semantic-release",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"zx-extra": "^2.5.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"c8": "^
|
|
32
|
+
"c8": "^8.0.0",
|
|
33
33
|
"uvu": "^0.5.6",
|
|
34
34
|
"verdaccio": "^5.25.0"
|
|
35
35
|
},
|
package/src/main/js/gh.js
CHANGED
|
@@ -7,7 +7,7 @@ import {formatReleaseNotes} from './changelog.js'
|
|
|
7
7
|
import {msgJoin} from './util.js'
|
|
8
8
|
|
|
9
9
|
export const ghRelease = async (pkg) => {
|
|
10
|
-
log({pkg})(
|
|
10
|
+
log({pkg})('create gh release')
|
|
11
11
|
|
|
12
12
|
const {ghBasicAuth: basicAuth, ghToken} = pkg.config
|
|
13
13
|
if (!ghToken) return null
|
|
@@ -22,7 +22,10 @@ export const ghRelease = async (pkg) => {
|
|
|
22
22
|
body: releaseNotes
|
|
23
23
|
})
|
|
24
24
|
|
|
25
|
-
await $.o({cwd})`curl -H 'Authorization: token ${ghToken}' -H 'Accept: application/vnd.github.v3+json' https://api.github.com/repos/${repoName}/releases -d ${releaseData}`
|
|
25
|
+
const {stdout} = await $.o({cwd})`curl -H 'Authorization: token ${ghToken}' -H 'Accept: application/vnd.github.v3+json' https://api.github.com/repos/${repoName}/releases -d ${releaseData}`
|
|
26
|
+
const res = JSON.parse(stdout.toString().trim())
|
|
27
|
+
|
|
28
|
+
log({pkg})('gh release url:', res.url, res.html_url)
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export const ghPages = queuefy(async (pkg) => {
|
package/src/main/js/processor.js
CHANGED
|
@@ -52,11 +52,11 @@ export const run = async ({cwd = process.cwd(), env, flags = {}} = {}) => within
|
|
|
52
52
|
report.setStatus('skipped', name)
|
|
53
53
|
return
|
|
54
54
|
}
|
|
55
|
-
if (
|
|
55
|
+
if (flags.build !== false) {
|
|
56
56
|
report.setStatus('building', name)
|
|
57
57
|
await build(pkg, _runCmd)
|
|
58
58
|
}
|
|
59
|
-
if (!flags.dryRun &&
|
|
59
|
+
if (!flags.dryRun && flags.publish !== false) {
|
|
60
60
|
report.setStatus('publishing', name)
|
|
61
61
|
await publish(pkg, _runCmd)
|
|
62
62
|
}
|
|
@@ -125,7 +125,7 @@ const build = memoizeBy(async (pkg, run = runCmd, flags = {}, self = build) => w
|
|
|
125
125
|
|
|
126
126
|
await Promise.all([
|
|
127
127
|
traverseDeps({pkg, packages: pkg.context.packages, cb: async({pkg}) => self(pkg, run, flags, self)}),
|
|
128
|
-
pkg.changes.length === 0 && pkg.config.npmFetch &&
|
|
128
|
+
pkg.changes.length === 0 && pkg.config.npmFetch && flags.npmFetch !== false
|
|
129
129
|
? fetchPkg(pkg)
|
|
130
130
|
: Promise.resolve()
|
|
131
131
|
])
|