@orderly.network/npm-release 0.0.2-alpha.7 → 0.0.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/index.mjs +4 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -104,7 +104,9 @@ async function sendSlackNotify({ success, error }) {
|
|
|
104
104
|
const linkedPkg = `<${packageUrl}|${pkgName}@${version}>`;
|
|
105
105
|
const text = success
|
|
106
106
|
? `packages published successfully (${registryLabel} registry):\n${linkedPkg}`
|
|
107
|
-
: `packages publish failed (${registryLabel} registry):\n${linkedPkg}\n${
|
|
107
|
+
: `packages publish failed (${registryLabel} registry):\n${linkedPkg}\n${
|
|
108
|
+
error || "Unknown error"
|
|
109
|
+
}`;
|
|
108
110
|
|
|
109
111
|
try {
|
|
110
112
|
const res = await fetch(slackWebhookUrl, {
|
|
@@ -241,6 +243,7 @@ async function main() {
|
|
|
241
243
|
|
|
242
244
|
await sendSlackNotify({ success: true });
|
|
243
245
|
} catch (err) {
|
|
246
|
+
console.error("release error: ", err);
|
|
244
247
|
await sendSlackNotify({
|
|
245
248
|
success: false,
|
|
246
249
|
error: err?.message,
|