Make publish job depend on checkout_code as git is not available in RNAndroid docker container

This commit is contained in:
Héctor Ramos
2019-05-28 07:55:22 -07:00
parent ea460d6d3e
commit 5be47faff7
+4 -7
View File
@@ -670,23 +670,20 @@ jobs:
# Only works on stable branches when a properly tagged commit is pushed
publish_npm_package:
<<: *android_defaults
docker:
- image: circleci/android:api-28-node8-alpha
environment:
- ANDROID_NDK: '/opt/ndk/android-ndk-r17c'
steps:
- checkout
- restore-cache: *restore-yarn-cache
- run: *yarn
# Fetch dependencies using Buck
- restore-cache: *restore-buck-downloads-cache
- run: *download-dependencies-buck
# Fetch dependencies using Gradle
- restore-cache: *restore-gradle-downloads-cache
- run: *download-dependencies-gradle
- restore-cache: *restore-yarn-cache
- run: *yarn
- run:
name: Authenticate with npm
command: echo "//registry.npmjs.org/:_authToken=${CIRCLE_NPM_TOKEN}" > ~/.npmrc