File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
packages/nx-release-version Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 24
24
- template : /.ado/templates/configure-git.yml@self
25
25
26
26
- script : |
27
- PUBLISH_TAG=$(jq -r '.release.version.generatorOptions.currentVersionResolverMetadata.tag' nx.json)
27
+ PUBLISH_TAG=$(jq -r '.release.version.versionActionsOptions.currentVersionResolverMetadata.tag' nx.json)
28
+ if [ -z "$PUBLISH_TAG" ] || [ "$PUBLISH_TAG" = "null" ]; then
29
+ echo "Error: Failed to read publish tag from nx.json"
30
+ exit 1
31
+ fi
28
32
echo "##vso[task.setvariable variable=publishTag]$PUBLISH_TAG"
29
33
echo "Using publish tag from nx.json: $PUBLISH_TAG"
30
34
displayName: Read publish tag from nx.json
61
65
62
66
- script : |
63
67
if [[ -f .rnm-publish ]]; then
64
- yarn nx release publish --tag ${{ parameters['publishTag'] }} --excludeTaskDependencies
68
+ # https://github.com/microsoft/react-native-macos/issues/2580
69
+ # `nx release publish` gets confused by the output of RNM's prepack script.
70
+ # Let's call `yarn npm publish` directly instead on the packages we want to publish.
71
+ # yarn nx release publish --tag ${{ parameters['publishTag'] }} --excludeTaskDependencies
72
+ yarn ./packages/virtualized-lists npm publish --tag ${{ parameters['publishTag'] }}
73
+ yarn ./packages/react-native npm publish --tag ${{ parameters['publishTag'] }}
65
74
fi
66
75
displayName: Publish packages
67
76
condition: and(succeeded(), eq(variables['publish_react_native_macos'], '1'))
Original file line number Diff line number Diff line change @@ -84,10 +84,8 @@ const afterAllProjectsVersioned = async (_cwd, _opts) => {
84
84
changedFiles . push ( ...versionedFiles ) ;
85
85
86
86
console . log ( '✅ Updated React Native artifacts' ) ;
87
- console . log ( '🏷️ Created .rnm-publish marker file' ) ;
88
-
87
+ console . table ( versionedFiles . map ( file => path . relative ( REPO_ROOT , file ) ) ) ;
89
88
} catch ( error ) {
90
- console . error ( 'Failed to update React Native artifacts:' , error ) ;
91
89
const errorMessage = error instanceof Error ? error . message : String ( error ) ;
92
90
console . error ( `❌ Failed to update React Native artifacts: ${ errorMessage } ` ) ;
93
91
throw error ;
You can’t perform that action at this time.
0 commit comments