bulk-release 2.15.15 → 2.15.16

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.15.16](https://github.com/semrel-extra/zx-bulk-release/compare/v2.15.15...v2.15.16) (2024-06-09)
2
+
3
+ ### Fixes & improvements
4
+ * fix: handle gh release err ([9d2714f](https://github.com/semrel-extra/zx-bulk-release/commit/9d2714fac339c0a604e2d2311338f3775edbb81c))
5
+
1
6
  ## [2.15.15](https://github.com/semrel-extra/zx-bulk-release/compare/v2.15.14...v2.15.15) (2024-05-31)
2
7
 
3
8
  ### 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.15.15",
4
+ "version": "2.15.16",
5
5
  "description": "zx-based alternative for multi-semantic-release",
6
6
  "type": "module",
7
7
  "exports": {
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "c8": "^9.1.0",
36
- "esbuild": "^0.21.1",
36
+ "esbuild": "^0.21.4",
37
37
  "uvu": "^0.5.6",
38
- "verdaccio": "^5.30.3"
38
+ "verdaccio": "^5.31.1"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -33,6 +33,10 @@ export const ghRelease = async (pkg) => {
33
33
  body: releaseData
34
34
  })).json()
35
35
 
36
+ if (!res.upload_url) {
37
+ throw new Error(`gh release failed: ${JSON.stringify(res)}`)
38
+ }
39
+
36
40
  if (ghAssets?.length) {
37
41
  // Lol. GH API literally returns pseudourl `...releases/110103594/assets{?name,label}` as shown in the docs
38
42
  const uploadUrl = res.upload_url.slice(0, res.upload_url.indexOf('{'))