-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce yarn workspace, and use beachball for publishing (#2805)
* Add yarn workspace and an additional package -- and start hooking up beachball * update lock * Dont allow patch changes on react-native-windows * Change files * Fix publish pipeline to work with beachball * UWP build needs to run yarn from root. * Simplify our custom rn-cli.config
- Loading branch information
1 parent
d21daea
commit 407c083
Showing
29 changed files
with
3,281 additions
and
668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// @ts-check | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
const pkgJsonPath = path.resolve(__dirname, "../vnext/package.json"); | ||
|
||
// Helper to format npmVersion in a way that the Version.rc resource files want it | ||
function npmVersionToRcVersion(npmVersion) { | ||
let groups = npmVersion.split(/[\.-]/); | ||
return `${groups[0]},${groups[1]},${groups[2]},${groups[4]}`; | ||
} | ||
|
||
let pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, "utf8")); | ||
|
||
// Set env variable to allow VS to build dll with correct version information | ||
console.log( | ||
`##vso[task.setvariable variable=RNW_PKG_VERSION_STR]${pkgJson.version}` | ||
); | ||
// Set env variable to allow VS to build dll with correct version information | ||
console.log( | ||
`##vso[task.setvariable variable=RNW_PKG_VERSION]${npmVersionToRcVersion(pkgJson.version)}` | ||
); | ||
|
||
console.log(`##vso[task.setvariable variable=npmVersion;isOutput=true]${pkgJson.version}`); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
change/react-native-windows-2019-07-18-12-30-50-beachball.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"comment": "Hookup beachball for publishing", | ||
"type": "prerelease", | ||
"packageName": "react-native-windows", | ||
"email": "[email protected]", | ||
"commit": "a0e9f6710d762a92d67a40c939dffa52914130b2", | ||
"date": "2019-07-18T19:30:50.792Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/react-native-windows-extended-2019-07-18-12-30-50-beachball.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"comment": "Initial commit", | ||
"type": "patch", | ||
"packageName": "react-native-windows-extended", | ||
"email": "[email protected]", | ||
"commit": "a0e9f6710d762a92d67a40c939dffa52914130b2", | ||
"date": "2019-07-18T19:30:30.735Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.