zx-bulk-release 2.9.2 → 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 CHANGED
@@ -1,3 +1,8 @@
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
+
1
6
  ## [2.9.2](https://github.com/semrel-extra/zx-bulk-release/compare/v2.9.1...v2.9.2) (2023-06-10)
2
7
 
3
8
  ### Fixes & improvements
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zx-bulk-release",
3
3
  "alias": "bulk-release",
4
- "version": "2.9.2",
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": "^7.14.0",
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})(`create gh release`)
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) => {