Skip to content

Commit 65bfadb

Browse files
authored
Fix beachball npm publish pipeline (#296)
* Update scripts to publish react-native-macos-init * Fix beachball publish by using a template to set the git user.email and user.name * Manually set the package version to what the beachball publish step tried and failed to commit. * Clean up merge markers
1 parent f7c9b9a commit 65bfadb

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.ado/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
submodules: recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
6464
persistCredentials: true # set to 'true' to leave the OAuth token in the Git config after the initial fetch
6565

66+
- template: templates/configure-git.yml
67+
6668
- task: CmdLine@2
6769
displayName: yarn install
6870
inputs:

.ado/templates/configure-git.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
steps:
3+
4+
- task: CmdLine@2
5+
displayName: Configure git
6+
inputs:
7+
script: |
8+
git config --global user.email "[email protected]"
9+
git config --global user.name "React-Native Bot"

packages/react-native-macos-init/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-macos-init",
3-
"version": "0.0.0",
3+
"version": "1.0.0",
44
"description": "CLI to add react-native-macos to an existing react-native project",
55
"main": "index.js",
66
"repository": "https://github.com/microsoft/react-native-macos",

0 commit comments

Comments
 (0)