Skip to content

Commit

Permalink
Grant CircleCI the ability to install private dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
arsalansufi committed Dec 3, 2020
1 parent 258ebf2 commit df417a4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .circleci/config.yml
Expand Up @@ -9,15 +9,18 @@ jobs:
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
steps:
- run:
command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s
name: Clone ci-scripts
command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s
- checkout
- run:
command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
name: Set up CircleCI artifacts directories
command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
- run:
command: npm install
name: npm install
name: Set up .npmrc
command: |
sed -i.bak s/\${npm_auth_token}/$NPM_TOKEN/ .npmrc_docker
mv .npmrc_docker .npmrc
- run: npm install
- run: make build
- run: make lint
- run: make test
Expand Down
5 changes: 5 additions & 0 deletions .npmrc_docker
@@ -0,0 +1,5 @@
ca = null
//registry.npmjs.org/:_authToken=${npm_auth_token}
@clever:registry=https://registry.npmjs.org/
always-auth = true
strict-ssl = true

0 comments on commit df417a4

Please sign in to comment.