Skip to content

ci(0.78): Add some logging to the publish phase #2478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .ado/templates/npm-publish-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,5 @@ steps:

- script: |
rm -f ~/.npmrc
env:
NODE_AUTH_TOKEN: $(npmAuthToken)
displayName: Remove npmrc if it exists
condition: always()
5 changes: 5 additions & 0 deletions .nx/version-plans/version-plan-1744766603658.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
react-native-macos: patch
---

Publish a new 0.78 patch release
22 changes: 22 additions & 0 deletions .yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/src/executors/release-publish/release-publish.impl.js b/src/executors/release-publish/release-publish.impl.js
index 08cd58274d308bcb2ca644e8af5bd99a153c9e91..5ce12c3cb563345ffd19159fd108ff763626b930 100644
--- a/src/executors/release-publish/release-publish.impl.js
+++ b/src/executors/release-publish/release-publish.impl.js
@@ -246,6 +246,8 @@ Please update the local dependency on "${depName}" to be a valid semantic versio
};
}
catch (err) {
+ console.log('Caught Error 1: ') // [macOS]
+ console.log(err) // [macOS]
try {
const stdoutData = JSON.parse(err.stdout?.toString() || '{}');
console.error(`${pm} publish error:`);
@@ -267,6 +269,8 @@ Please update the local dependency on "${depName}" to be a valid semantic versio
};
}
catch (err) {
+ console.log('Caught Error 2: ') // [macOS]
+ console.log(err) // [macOS]
console.error(`Something unexpected went wrong when processing the ${pm} publish output\n`, err);
return {
success: false,
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@babel/preset-flow": "^7.24.7",
"@definitelytyped/dtslint": "^0.0.127",
"@jest/create-cache-key-function": "^29.6.3",
"@nx/js": "~20.0.0",
"@nx/js": "patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch",
"@react-native/metro-babel-transformer": "0.78.2",
"@react-native/metro-config": "0.78.2",
"@tsconfig/node18": "1.0.1",
Expand Down
47 changes: 45 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,7 @@ __metadata:
languageName: node
linkType: hard

"@nx/js@npm:~20.0.0":
"@nx/js@npm:20.0.7, @nx/js@npm:~20.0.0":
version: 20.0.7
resolution: "@nx/js@npm:20.0.7"
dependencies:
Expand Down Expand Up @@ -2393,6 +2393,49 @@ __metadata:
languageName: node
linkType: hard

"@nx/js@patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch":
version: 20.0.7
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"
dependencies:
"@babel/core": "npm:^7.23.2"
"@babel/plugin-proposal-decorators": "npm:^7.22.7"
"@babel/plugin-transform-class-properties": "npm:^7.22.5"
"@babel/plugin-transform-runtime": "npm:^7.23.2"
"@babel/preset-env": "npm:^7.23.2"
"@babel/preset-typescript": "npm:^7.22.5"
"@babel/runtime": "npm:^7.22.6"
"@nx/devkit": "npm:20.0.7"
"@nx/workspace": "npm:20.0.7"
"@zkochan/js-yaml": "npm:0.0.7"
babel-plugin-const-enum: "npm:^1.0.1"
babel-plugin-macros: "npm:^2.8.0"
babel-plugin-transform-typescript-metadata: "npm:^0.3.1"
chalk: "npm:^4.1.0"
columnify: "npm:^1.6.0"
detect-port: "npm:^1.5.1"
enquirer: "npm:~2.3.6"
fast-glob: "npm:3.2.7"
ignore: "npm:^5.0.4"
js-tokens: "npm:^4.0.0"
jsonc-parser: "npm:3.2.0"
minimatch: "npm:9.0.3"
npm-package-arg: "npm:11.0.1"
npm-run-path: "npm:^4.0.1"
ora: "npm:5.3.0"
semver: "npm:^7.5.3"
source-map-support: "npm:0.5.19"
ts-node: "npm:10.9.1"
tsconfig-paths: "npm:^4.1.2"
tslib: "npm:^2.3.0"
peerDependencies:
verdaccio: ^5.0.4
peerDependenciesMeta:
verdaccio:
optional: true
checksum: 10c0/4ea6d88fd623baad2627dcb0a8aa68d2f5eb799b8ded1abc2984eedb508295e640244c7a5a4a57b7b060b0cd2df735142b7d8c00ea6ad33ea4c9608b078f8a14
languageName: node
linkType: hard

"@nx/nx-darwin-arm64@npm:20.0.7":
version: 20.0.7
resolution: "@nx/nx-darwin-arm64@npm:20.0.7"
Expand Down Expand Up @@ -2685,7 +2728,7 @@ __metadata:
"@babel/preset-flow": "npm:^7.24.7"
"@definitelytyped/dtslint": "npm:^0.0.127"
"@jest/create-cache-key-function": "npm:^29.6.3"
"@nx/js": "npm:~20.0.0"
"@nx/js": "patch:@nx/js@npm%3A20.0.7#~/.yarn/patches/@nx-js-npm-20.0.7-30719000fd.patch"
"@react-native/metro-babel-transformer": "npm:0.78.2"
"@react-native/metro-config": "npm:0.78.2"
"@tsconfig/node18": "npm:1.0.1"
Expand Down
Loading