Update CircleCI confih

This commit is contained in:
Héctor Ramos
2018-09-02 16:11:35 +02:00
committed by Mike Grabowski
parent ef7e99c1bb
commit af554aabe7
+15 -2
View File
@@ -593,13 +593,26 @@ jobs:
publish:
<<: *android_defaults
steps:
- attach_workspace:
at: ~/react-native
- checkout
- restore-cache: *restore-yarn-cache
- run: *yarn
- run:
name: Authenticate with npm
command: echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
- run:
name: Authenticate with npm
command: echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc
- run:
name: Authenticate git user
command: |
git config --global user.email "react-native-bot@users.noreply.github.com"
git config --global user.name "npm Deployment Script"
echo "machine github.com login react-native-bot password $GITHUB_TOKEN" > ~/.netrc
- run:
name: Publish React Native Package
command: node ./scripts/publish-npm.js