Skip to content

Commit

Permalink
Use npm config set instead of echo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-abiera committed Oct 12, 2020
1 parent 34f01f5 commit 5e2be1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
with:
node-version: 10
- run: |
echo "@lightspeed-hospitality:registry=https://lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/" > .npmrc
echo "//lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:_password=\${NPM_ARTIFACTORY_PASSWORD}" >> .npmrc
echo "//lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:username=\${NPM_ARTIFACTORY_USER}" >> .npmrc
echo "//lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:email=ci@lightspeedhq.com" >> .npmrc
echo "//lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:always-auth=true" >> .npmrc
npm config set @lightspeed-hospitality:registry https://lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/
npm config set //lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:_password \${NPM_ARTIFACTORY_PASSWORD}
npm config set //lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:username \${NPM_ARTIFACTORY_USER}
npm config set //lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:email ci@lightspeedhq.com
npm config set //lightspeedhq.jfrog.io/lightspeedhq/api/npm/npm-local/:always-auth true
npm ci
npm publish
env:
Expand Down

0 comments on commit 5e2be1a

Please sign in to comment.