-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The publish script will fail on forked PRs anyway as the $CIRCLE_NPM_TOKEN envvar will be missing or incorrect.
- Loading branch information
Showing
1 changed file
with
5 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -456,18 +456,15 @@ jobs: | |
|
||
- restore-cache: *restore-cache-android-packages | ||
- run: *install-android-packages | ||
- save-cache: *save-cache-android-packages | ||
|
||
# Install Android NDK | ||
- run: *create-ndk-directory | ||
- restore-cache: *restore-cache-ndk | ||
- run: *install-ndk | ||
- save-cache: *save-cache-ndk | ||
|
||
# Fetch dependencies using BUCK | ||
- restore-cache: *restore-cache-buck | ||
- run: *install-buck | ||
- save-cache: *save-cache-buck | ||
|
||
- run: buck fetch ReactAndroid/src/test/java/com/facebook/react/modules | ||
- run: buck fetch ReactAndroid/src/main/java/com/facebook/react | ||
|
@@ -477,24 +474,18 @@ jobs: | |
|
||
- restore-cache: *restore-cache-gradle-downloads | ||
- run: *gradle-download-deps | ||
- save-cache: *save-cache-gradle-downloads | ||
|
||
- restore-cache: *restore-yarn-cache | ||
- run: *yarn | ||
- save-cache: *save-yarn-cache | ||
|
||
- run: | ||
name: Publish React Native Package | ||
command: | | ||
if [ -z "$CIRCLE_PULL_REQUEST" ]; then | ||
echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "npm Deployment Script" | ||
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc | ||
node ./scripts/publish-npm.js | ||
else | ||
echo "Skipping deploy." | ||
fi | ||
echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "npm Deployment Script" | ||
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc | ||
node ./scripts/publish-npm.js | ||
# Set up an Android environment for downstream jobs | ||
test_android: | ||
|