Skip to content

Commit bb154aa

Browse files
committed
ci(0.76): Add some logging to the pubish phase (#2478)
Patch nx to add some logging to help figure out why `yarn nx run react-native-macos:nx-release-publish --excludeTaskDependencies` fails I expect CI to fail after merge :D
1 parent 09af527 commit bb154aa

File tree

4 files changed

+307
-93
lines changed

4 files changed

+307
-93
lines changed
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
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 2: ') // [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

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@babel/preset-flow": "^7.24.7",
4949
"@definitelytyped/dtslint": "^0.0.127",
5050
"@jest/create-cache-key-function": "^29.6.3",
51-
"@nx/js": "~20.0.0",
51+
"@nx/js": "patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch",
5252
"@pkgjs/parseargs": "^0.11.0",
5353
"@react-native/metro-babel-transformer": "0.76.9",
5454
"@react-native/metro-config": "0.76.9",

0 commit comments

Comments
 (0)