Skip to content

Commit 9c1d4be

Browse files
authored
ci(0.76): more publish pipeline fixes (#2318)
* chore(0.76): don't use `workspace:*` dependencies in react-native-macos * ci: rename `npm-publish` to `npm-publish-steps` * ci: move xcode-select into apple-tools-setup * ci: split nx release into two
1 parent c25607c commit 9c1d4be

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

.ado/jobs/npm-publish-dry-run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
fetchFilter: blob:none # partial clone for faster clones while maintaining history
1212
persistCredentials: true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
1313

14-
- template: /.ado/templates/npm-publish.yml@self
14+
- template: /.ado/templates/npm-publish-steps.yml@self

.ado/scripts/prepublish-check.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { spawnSync } from "node:child_process";
33
import * as fs from "node:fs";
44
import * as util from "node:util";
55

6-
const ADO_PUBLISH_PIPELINE = ".ado/templates/npm-publish.yml";
6+
const ADO_PUBLISH_PIPELINE = ".ado/templates/npm-publish-steps.yml";
77
const NX_CONFIG_FILE = "nx.json";
88

99
const NPM_TAG_NEXT = "next";

.ado/templates/apple-tools-setup.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ steps:
99
script: |
1010
brew bundle --file .ado/Brewfile
1111
12-
- template: /.ado/templates/apple-xcode-select.yml@self
12+
- script: |
13+
sudo xcode-select --switch $(xcode_version)
14+
displayName: Use $(xcode_friendly_name)

.ado/templates/apple-xcode-select.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ parameters:
33
publishTag: 'latest'
44

55
steps:
6+
- template: /.ado/templates/configure-git.yml@self
7+
68
- script: |
79
yarn install
810
displayName: Install npm dependencies
@@ -19,7 +21,8 @@ steps:
1921
2022
- script: |
2123
git switch $(Build.SourceBranchName)
22-
yarn nx release --yes --verbose
24+
yarn nx release --skip-publish --verbose
25+
yarn nx release publish --excludeTaskDependencies
2326
env:
2427
GITHUB_TOKEN: $(githubAuthToken)
2528
NODE_AUTH_TOKEN: $(npmAuthToken)

packages/react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
},
112112
"dependencies": {
113113
"@jest/create-cache-key-function": "^29.6.3",
114-
"@react-native-mac/virtualized-lists": "workspace:*",
114+
"@react-native-mac/virtualized-lists": "0.76.4",
115115
"@react-native/assets-registry": "0.76.3",
116116
"@react-native/codegen": "0.76.3",
117117
"@react-native/community-cli-plugin": "0.76.3",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3322,7 +3322,7 @@ __metadata:
33223322
languageName: unknown
33233323
linkType: soft
33243324

3325-
"@react-native-mac/virtualized-lists@workspace:*, @react-native-mac/virtualized-lists@workspace:packages/virtualized-lists":
3325+
"@react-native-mac/virtualized-lists@npm:0.76.4, @react-native-mac/virtualized-lists@workspace:packages/virtualized-lists":
33263326
version: 0.0.0-use.local
33273327
resolution: "@react-native-mac/virtualized-lists@workspace:packages/virtualized-lists"
33283328
dependencies:
@@ -12115,7 +12115,7 @@ __metadata:
1211512115
resolution: "react-native-macos@workspace:packages/react-native"
1211612116
dependencies:
1211712117
"@jest/create-cache-key-function": "npm:^29.6.3"
12118-
"@react-native-mac/virtualized-lists": "workspace:*"
12118+
"@react-native-mac/virtualized-lists": "npm:0.76.4"
1211912119
"@react-native/assets-registry": "npm:0.76.3"
1212012120
"@react-native/codegen": "npm:0.76.3"
1212112121
"@react-native/community-cli-plugin": "npm:0.76.3"

0 commit comments

Comments
 (0)