From 5e2be1abf73ede6a1c1e0379768293b6c6078218 Mon Sep 17 00:00:00 2001 From: Kevin Abiera Date: Tue, 13 Oct 2020 07:59:05 +0800 Subject: [PATCH] Use npm config set instead of echo --- .github/workflows/npmpublish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index fcdac7a..6bcee19 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -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: