Skip to content

Commit 1980dd7

Browse files
committed
Remove pull request check
The publish script will fail on forked PRs anyway as the $CIRCLE_NPM_TOKEN envvar will be missing or incorrect.
1 parent 3d94671 commit 1980dd7

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.circleci/config.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -456,18 +456,15 @@ jobs:
456456

457457
- restore-cache: *restore-cache-android-packages
458458
- run: *install-android-packages
459-
- save-cache: *save-cache-android-packages
460459

461460
# Install Android NDK
462461
- run: *create-ndk-directory
463462
- restore-cache: *restore-cache-ndk
464463
- run: *install-ndk
465-
- save-cache: *save-cache-ndk
466464

467465
# Fetch dependencies using BUCK
468466
- restore-cache: *restore-cache-buck
469467
- run: *install-buck
470-
- save-cache: *save-cache-buck
471468

472469
- run: buck fetch ReactAndroid/src/test/java/com/facebook/react/modules
473470
- run: buck fetch ReactAndroid/src/main/java/com/facebook/react
@@ -477,24 +474,18 @@ jobs:
477474

478475
- restore-cache: *restore-cache-gradle-downloads
479476
- run: *gradle-download-deps
480-
- save-cache: *save-cache-gradle-downloads
481477

482478
- restore-cache: *restore-yarn-cache
483479
- run: *yarn
484-
- save-cache: *save-yarn-cache
485480

486481
- run:
487482
name: Publish React Native Package
488483
command: |
489-
if [ -z "$CIRCLE_PULL_REQUEST" ]; then
490-
echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
491-
git config --global user.email "[email protected]"
492-
git config --global user.name "npm Deployment Script"
493-
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc
494-
node ./scripts/publish-npm.js
495-
else
496-
echo "Skipping deploy."
497-
fi
484+
echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
485+
git config --global user.email "[email protected]"
486+
git config --global user.name "npm Deployment Script"
487+
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc
488+
node ./scripts/publish-npm.js
498489
499490
# Set up an Android environment for downstream jobs
500491
test_android:

0 commit comments

Comments
 (0)