@fuman/build 0.0.5 → 0.0.6
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/git/github.js +7 -1
- package/package.json +2 -2
package/git/github.js
CHANGED
|
@@ -30,7 +30,7 @@ async function createGithubRelease(params) {
|
|
|
30
30
|
}));
|
|
31
31
|
if (params.artifacts != null && params.artifacts.length > 0) {
|
|
32
32
|
await asyncPool(params.artifacts, async (file) => {
|
|
33
|
-
await ffetch(
|
|
33
|
+
await ffetch(`https://uploads.github.com/repos/${params.repo}/releases/${release.id}/assets`, {
|
|
34
34
|
method: "POST",
|
|
35
35
|
query: { name: file.name },
|
|
36
36
|
headers: {
|
|
@@ -39,6 +39,12 @@ async function createGithubRelease(params) {
|
|
|
39
39
|
body: file.body,
|
|
40
40
|
validateResponse: (res) => res.status === 201
|
|
41
41
|
});
|
|
42
|
+
}, {
|
|
43
|
+
onError: (item, idx, err) => {
|
|
44
|
+
console.error("failed to upload artifact:", item.name);
|
|
45
|
+
console.error(err);
|
|
46
|
+
return "ignore";
|
|
47
|
+
}
|
|
42
48
|
});
|
|
43
49
|
}
|
|
44
50
|
return release.id;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuman/build",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"description": "utils for building packages and managing monorepos",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@drizzle-team/brocli": "^0.10.2",
|
|
10
|
-
"@fuman/fetch": "^0.0.
|
|
10
|
+
"@fuman/fetch": "^0.0.6",
|
|
11
11
|
"@fuman/io": "^0.0.4",
|
|
12
12
|
"@fuman/node": "^0.0.4",
|
|
13
13
|
"@fuman/utils": "^0.0.4",
|