Skip to content

Commit dc144a9

Browse files
authored
Merge pull request #609 from nellh/no-global-npm-publish
Don't rely on global install for deployment publish
2 parents 70062aa + 6a07168 commit dc144a9

File tree

3 files changed

+654
-31
lines changed

3 files changed

+654
-31
lines changed

circle.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,12 @@ jobs:
5353
- run: apk --no-cache add ca-certificates
5454
- run: apk --no-cache add git python build-base openssh
5555
# Publish to NPM
56-
- run: npm install -g npm-cli-login
57-
- run: npm-cli-login -u $NPM_USERNAME -p $NPM_PASSWORD -e $NPM_EMAIL
56+
- run: npm install
57+
- run: ./node_modules/npm-cli-login -u $NPM_USERNAME -p $NPM_PASSWORD -e $NPM_EMAIL
5858
- run: git checkout -f $CIRCLE_TAG
5959
# Set the version number
6060
- run: sed -i -E "s/0.0.0/$CIRCLE_TAG/" package.json
61-
- run: npm install -g publish
62-
- run: npm run npmPublish
61+
- run: ./node_modules/.bin/publish
6362
# Update gh-pages demo site
6463
- run: git config --global user.email circleci@circleci
6564
- run: git config --global user.name CircleCI

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"husky": "^1.0.0-rc.13",
5252
"istanbul": "^0.4.5",
5353
"mocha": "^5.2.0",
54+
"npm-cli-login": "^0.0.10",
5455
"nyc": "^13.0.1",
5556
"prettier": "^1.14.2",
5657
"pretty-quick": "^1.6.0",

0 commit comments

Comments
 (0)