Skip to content

Commit

Permalink
chore: add npmrc config
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Zivolo committed Nov 30, 2018
1 parent d33343e commit 29598c2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@quid:registry=https://quid.jfrog.io/quid/api/npm/npm-quid/
//quid.jfrog.io/quid/api/npm/npm-quid/:_auth=YXV0b21hdGVkLnJlYWQ6QVAyRGdySnBicXhHTFlFeWJ5U2JocnFTOEtBVGQ0Nm5EZjZVQWc
//quid.jfrog.io/quid/api/npm/npm-quid/:username=automated+read@quid.com
//quid.jfrog.io/quid/api/npm/npm-quid/:email=automated.read
//quid.jfrog.io/quid/api/npm/npm-quid/:always-auth=true
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cache: yarn
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.12.1
- export PATH="$HOME/.yarn/bin:$PATH"
- bash scripts/npmrc.sh $AUTOMATED_WRITE_AUTH > .npmrc
script:
- yarn test:ci
deploy:
Expand Down
1 change: 1 addition & 0 deletions scripts/deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
bash scripts/npmrc.sh automated.write automated+write@quid.com $AUTOMATED_WRITE_AUTH > .npmrc
lerna publish
11 changes: 11 additions & 0 deletions scripts/npmrc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

TOKEN=$1

cat << EOF
@quid:registry=https://quid.jfrog.io/quid/api/npm/npm-quid/
//quid.jfrog.io/quid/api/npm/npm-quid/:_auth=$TOKEN
//quid.jfrog.io/quid/api/npm/npm-quid/:username=automated.read
//quid.jfrog.io/quid/api/npm/npm-quid/:email=automated+read@quid.com
//quid.jfrog.io/quid/api/npm/npm-quid/:always-auth=true
EOF

0 comments on commit 29598c2

Please sign in to comment.