Skip to content

Commit 05ac194

Browse files
authored
Merge branch 'main' into integrate_oct28
2 parents 6cdba58 + 8fe6555 commit 05ac194

File tree

6 files changed

+14
-25
lines changed

6 files changed

+14
-25
lines changed

.ado/publish.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ jobs:
7979
displayName: Beachball Publish (Stable Branch)
8080
condition: and(succeeded(), ne(variables['Build.SourceBranchName'], 'main'))
8181

82-
# Beachball reverts to local state after publish, but we want the updates it added
83-
- script: git pull origin ${{ variables['Build.SourceBranchName'] }}
84-
displayName: git pull
85-
8682
- script: npx --yes @rnw-scripts/create-github-releases@latest --yes --authToken $(githubAuthToken)
8783
displayName: Create GitHub Releases for New Tags (Stable Branch)
8884
condition: and(succeeded(), ${{ not(parameters.skipGitPush) }}, ${{ ne(variables['Build.SourceBranchName'], 'main') }} )

.ado/templates/react-native-init.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ steps:
5555
- script: npx beachball publish --branch origin/$(BeachBallBranchName) --no-push --registry http://localhost:4873 --yes --verbose --access public --changehint "Run `yarn change` from root of repo to generate a change file."
5656
displayName: Publish packages to verdaccio
5757

58-
# Beachball reverts to local state after publish, but we need to know the new version it pushed.
59-
- script: npx beachball bump --branch origin/$(BeachBallBranchName) --yes --verbose
60-
displayName: beachball bump
61-
6258
- template: set-version-vars.yml
6359
parameters:
6460
buildEnvironment: ${{ parameters.buildEnvironment }}

beachball.config.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,11 @@ module.exports = {
1616

1717
hooks: {
1818
// Stamp versions when we publish a new package
19-
prepublish: (_packagePath, name, version) => {
19+
postbump: (_packagePath, name, version) => {
2020
if (name === 'react-native-windows') {
2121
console.log(`Stamping RNW Version ${version}`);
22-
23-
// prepublish is run before bumping or commiting. Append an additional
24-
// commit to check-in stamped versions when we push.
25-
26-
execSilent(`yarn stamp-version ${version}`);
27-
execSilent('git add --all');
28-
execSilent(`git commit --message "Stamp RNW ${version}"`);
22+
execSync(`yarn stamp-version ${version}`);
2923
}
3024
}
3125
}
3226
}
33-
34-
function execSilent(command) {
35-
execSync(command, {stdio: 'pipe'});
36-
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Force version bump",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
]
3333
},
3434
"devDependencies": {
35-
"beachball": "^2.16.0",
35+
"beachball": "^2.20.0",
3636
"husky": "^4.2.5",
3737
"unbroken": "1.0.27",
3838
"lage": "^0.29.3",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3186,10 +3186,10 @@ bcrypt-pbkdf@^1.0.0:
31863186
dependencies:
31873187
tweetnacl "^0.14.3"
31883188

3189-
beachball@^2.16.0:
3190-
version "2.19.0"
3191-
resolved "https://registry.yarnpkg.com/beachball/-/beachball-2.19.0.tgz#00a8305c5ce2a29c81f1ed6fa6024546a87b9334"
3192-
integrity sha512-o4BfIbsrkUK0tKONjqf+YtGEYBf3m4UDcK08vMHb+1BH3L6uTd6Uq/DhKAuhaUndlwfE4m4TqKYZl/o29ybIBA==
3189+
beachball@^2.20.0:
3190+
version "2.20.0"
3191+
resolved "https://registry.yarnpkg.com/beachball/-/beachball-2.20.0.tgz#7fe55e7d86c9c890de15474c84f6a32653bdb6ca"
3192+
integrity sha512-vVdF6qDDurO66GZigUtqKuXzQM8ImlG7MgN5iTj9rvZ4RM6vy+nklu0EmqaQtqS5K6hZ4WrHDwgcR/kLa0VHpA==
31933193
dependencies:
31943194
cosmiconfig "^6.0.0"
31953195
execa "^4.0.3"

0 commit comments

Comments
 (0)