bulk-release 2.11.1 → 2.11.2
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/gh.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [2.11.2](https://github.com/semrel-extra/zx-bulk-release/compare/v2.11.1...v2.11.2) (2023-06-27)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* fix: handle gh release `upload_url` ([c853ca4](https://github.com/semrel-extra/zx-bulk-release/commit/c853ca4b6978d73402d43c60c30de4523b3c2662))
|
|
5
|
+
|
|
1
6
|
## [2.11.1](https://github.com/semrel-extra/zx-bulk-release/compare/v2.11.0...v2.11.1) (2023-06-27)
|
|
2
7
|
|
|
3
8
|
### Fixes & improvements
|
package/package.json
CHANGED
package/src/main/js/gh.js
CHANGED
|
@@ -27,10 +27,10 @@ export const ghRelease = async (pkg) => {
|
|
|
27
27
|
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}`
|
|
28
28
|
const res = JSON.parse(stdout.toString().trim())
|
|
29
29
|
|
|
30
|
-
log({pkg})('gh release url:', res.url, res.html_url, res.upload_url)
|
|
31
|
-
|
|
32
30
|
if (ghAssets) {
|
|
33
|
-
|
|
31
|
+
// Lol. GH API literally returns pseudourl `...releases/110103594/assets{?name,label}` as shown in the docs
|
|
32
|
+
const uploadUrl = res.upload_url.slice(0, res.upload_url.indexOf('{'))
|
|
33
|
+
await ghUploadAssets({ghToken, ghAssets, uploadUrl, cwd})
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
log({pkg})(`duration gh release: ${Date.now() - now}`)
|