forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix the
react-native-macos-init
pipeline (#2228)
* ci: fix the `react-native-macos-init` pipeline The pipeline wasn't actually publishing anything and we've been testing against latest on npm all this time. * fix(react-native): `xcodeProject.path` may not always be present
- Loading branch information
Showing
5 changed files
with
96 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
|
||
NPM_REGISTRY=http://localhost:4873 | ||
|
||
project_root=$(cd -P "$(dirname $0)" && pwd) | ||
|
||
set -eox pipefail | ||
|
||
case ${1-} in | ||
"configure") | ||
yarn config set npmRegistryServer $NPM_REGISTRY | ||
yarn config set unsafeHttpWhitelist --json '["localhost"]' | ||
;; | ||
|
||
"init") | ||
npm set registry $NPM_REGISTRY | ||
npx verdaccio --config $project_root/.ado/verdaccio/config.yaml & | ||
node $project_root/.ado/waitForVerdaccio.js | ||
node $project_root/.ado/npmAddUser.js user pass mail@nomail.com $NPM_REGISTRY | ||
;; | ||
|
||
"publish") | ||
checkpoint=$(git rev-parse HEAD) | ||
yarn set-version 1000.0.0-pr | ||
git commit --all --message 'bump' --no-verify | ||
packages=() | ||
for json in $(yarn workspaces list --no-private --json); do | ||
packages+=(--package $(node --print "JSON.parse('$json').name")) | ||
done | ||
npx beachball change --no-fetch --type patch --message 'bump for testing purposes' ${packages[@]} | ||
npx beachball $* --no-push --registry $NPM_REGISTRY --yes --access public --no-generate-changelog | ||
git reset --hard $checkpoint | ||
;; | ||
esac |
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