From af554aabe738218b6a37bbe7725529d4a1e470ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Wed, 22 Aug 2018 23:20:05 -0700 Subject: [PATCH] Update CircleCI confih --- .circleci/config.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ae0b587879e..e89c2ce451d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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