From b1382274829cdddb4611d01ec0fc8df08a879e2f Mon Sep 17 00:00:00 2001 From: Vignesh Kennadi Date: Fri, 27 Sep 2024 15:36:44 +0530 Subject: [PATCH] adds sample login step with user name and token --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f98a4935..18520e0f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,7 +30,7 @@ jobs: working-directory: xero-node - name: Login to npm - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + run: npm login --scope=@your-scope --registry=https://registry.npmjs.org/ <<< "manisht72x\n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\n$manish.tanwar@thoughtworks.com" working-directory: xero-node - name: Run Build