Skip to content

Commit 34d8bdf

Browse files
authored
ci(0.78): Add some logging to the pubish phase (#2478)
## Summary: Patch nx to add some logging to help figure out why `yarn nx run react-native-macos:nx-release-publish --excludeTaskDependencies` fails ## Test Plan: I expect CI to fail after merge :D
1 parent 8b4925e commit 34d8bdf

File tree

5 files changed

+73
-5
lines changed

5 files changed

+73
-5
lines changed

.ado/templates/npm-publish-steps.yml

-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,5 @@ steps:
4040
4141
- script: |
4242
rm -f ~/.npmrc
43-
env:
44-
NODE_AUTH_TOKEN: $(npmAuthToken)
4543
displayName: Remove npmrc if it exists
4644
condition: always()
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
@@ -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",

yarn.lock

+45-2
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,7 @@ __metadata:
23502350
languageName: node
23512351
linkType: hard
23522352

2353-
"@nx/js@npm:~20.0.0":
2353+
"@nx/js@npm:20.0.7, @nx/js@npm:~20.0.0":
23542354
version: 20.0.7
23552355
resolution: "@nx/js@npm:20.0.7"
23562356
dependencies:
@@ -2393,6 +2393,49 @@ __metadata:
23932393
languageName: node
23942394
linkType: hard
23952395

2396+
"@nx/js@patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch":
2397+
version: 20.0.7
2398+
resolution: "@nx/js@patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch::version=20.0.7&hash=6556dd"
2399+
dependencies:
2400+
"@babel/core": "npm:^7.23.2"
2401+
"@babel/plugin-proposal-decorators": "npm:^7.22.7"
2402+
"@babel/plugin-transform-class-properties": "npm:^7.22.5"
2403+
"@babel/plugin-transform-runtime": "npm:^7.23.2"
2404+
"@babel/preset-env": "npm:^7.23.2"
2405+
"@babel/preset-typescript": "npm:^7.22.5"
2406+
"@babel/runtime": "npm:^7.22.6"
2407+
"@nx/devkit": "npm:20.0.7"
2408+
"@nx/workspace": "npm:20.0.7"
2409+
"@zkochan/js-yaml": "npm:0.0.7"
2410+
babel-plugin-const-enum: "npm:^1.0.1"
2411+
babel-plugin-macros: "npm:^2.8.0"
2412+
babel-plugin-transform-typescript-metadata: "npm:^0.3.1"
2413+
chalk: "npm:^4.1.0"
2414+
columnify: "npm:^1.6.0"
2415+
detect-port: "npm:^1.5.1"
2416+
enquirer: "npm:~2.3.6"
2417+
fast-glob: "npm:3.2.7"
2418+
ignore: "npm:^5.0.4"
2419+
js-tokens: "npm:^4.0.0"
2420+
jsonc-parser: "npm:3.2.0"
2421+
minimatch: "npm:9.0.3"
2422+
npm-package-arg: "npm:11.0.1"
2423+
npm-run-path: "npm:^4.0.1"
2424+
ora: "npm:5.3.0"
2425+
semver: "npm:^7.5.3"
2426+
source-map-support: "npm:0.5.19"
2427+
ts-node: "npm:10.9.1"
2428+
tsconfig-paths: "npm:^4.1.2"
2429+
tslib: "npm:^2.3.0"
2430+
peerDependencies:
2431+
verdaccio: ^5.0.4
2432+
peerDependenciesMeta:
2433+
verdaccio:
2434+
optional: true
2435+
checksum: 10c0/4ea6d88fd623baad2627dcb0a8aa68d2f5eb799b8ded1abc2984eedb508295e640244c7a5a4a57b7b060b0cd2df735142b7d8c00ea6ad33ea4c9608b078f8a14
2436+
languageName: node
2437+
linkType: hard
2438+
23962439
"@nx/nx-darwin-arm64@npm:20.0.7":
23972440
version: 20.0.7
23982441
resolution: "@nx/nx-darwin-arm64@npm:20.0.7"
@@ -2685,7 +2728,7 @@ __metadata:
26852728
"@babel/preset-flow": "npm:^7.24.7"
26862729
"@definitelytyped/dtslint": "npm:^0.0.127"
26872730
"@jest/create-cache-key-function": "npm:^29.6.3"
2688-
"@nx/js": "npm:~20.0.0"
2731+
"@nx/js": "patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch"
26892732
"@react-native/metro-babel-transformer": "npm:0.78.2"
26902733
"@react-native/metro-config": "npm:0.78.2"
26912734
"@tsconfig/node18": "npm:1.0.1"

0 commit comments

Comments
 (0)