Skip to content

Commit cab6ed9

Browse files
committed
ci(0.78): Add some logging to the pubish phase
1 parent ccfa0f7 commit cab6ed9

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
react-native-macos: patch
3+
---
4+
5+
Publish a new 0.78 patch release
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/src/executors/release-publish/release-publish.impl.js b/src/executors/release-publish/release-publish.impl.js
2+
index 08cd58274d308bcb2ca644e8af5bd99a153c9e91..5ce12c3cb563345ffd19159fd108ff763626b930 100644
3+
--- a/src/executors/release-publish/release-publish.impl.js
4+
+++ b/src/executors/release-publish/release-publish.impl.js
5+
@@ -246,6 +246,8 @@ Please update the local dependency on "${depName}" to be a valid semantic versio
6+
};
7+
}
8+
catch (err) {
9+
+ console.log('Caught Error 1: ') // [macOS]
10+
+ console.log(err) // [macOS]
11+
try {
12+
const stdoutData = JSON.parse(err.stdout?.toString() || '{}');
13+
console.error(`${pm} publish error:`);
14+
@@ -267,6 +269,8 @@ Please update the local dependency on "${depName}" to be a valid semantic versio
15+
};
16+
}
17+
catch (err) {
18+
+ console.log('Caught Error 1: ') // [macOS]
19+
+ console.log(err) // [macOS]
20+
console.error(`Something unexpected went wrong when processing the ${pm} publish output\n`, err);
21+
return {
22+
success: false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@babel/preset-flow": "^7.24.7",
5454
"@definitelytyped/dtslint": "^0.0.127",
5555
"@jest/create-cache-key-function": "^29.6.3",
56-
"@nx/js": "~20.0.0",
56+
"@nx/js": "patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch",
5757
"@react-native/metro-babel-transformer": "0.78.2",
5858
"@react-native/metro-config": "0.78.2",
5959
"@tsconfig/node18": "1.0.1",

0 commit comments

Comments
 (0)