Skip to content

Commit

Permalink
Login to npm in circle.yml instead of publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejbartas committed Apr 13, 2017
1 parent d80f44c commit a4a94d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ machine:

dependencies:
override:
- npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN;
- npm install -g gulp
- npm install
- cd example && npm install
Expand Down
3 changes: 0 additions & 3 deletions publish
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh

# Login to NPM
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN;

version=$(grep -m1 version package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g')
name=$(grep -m1 name package.json | awk -F: '{ print $2 }' | sed 's/[", ]//g')

Expand Down

0 comments on commit a4a94d3

Please sign in to comment.