Skip to content

Commit

Permalink
Remove npmrc before publish and danger (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
minkimcello authored Dec 18, 2019
1 parent 4701e94 commit 9737390
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions publish-previews/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function run_danger(){
yarn global add danger --dev
export PATH="$(yarn global bin):$PATH"
echo -e "${BLUE}Running Danger CI..${NC}"
remove_npmrc
danger ci
}

Expand All @@ -38,6 +39,7 @@ function publish(){
echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
echo "unsafe-perm=true" >> ~/.npmrc

remove_npmrc
install_with_CLI

for dir in ${confirmed_directories_array[@]}; do
Expand Down Expand Up @@ -251,7 +253,6 @@ function remove_npmrc(){
echo -e "${YELLOW}.npmrc detected: Removing npmrc file from repository...${NC}"
rm .npmrc
fi
check_prerequisites
}

remove_npmrc
check_prerequisites

0 comments on commit 9737390

Please sign in to comment.