From 82d469e584121591149339f3ea4b8e0036a97c5d Mon Sep 17 00:00:00 2001 From: Vignesh Kennadi Date: Fri, 27 Sep 2024 15:43:23 +0530 Subject: [PATCH] removed login step for security reasons --- .github/workflows/publish.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 901f9528..39decf3e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,16 +29,12 @@ jobs: run: npm ci working-directory: xero-node - - name: Login to npm - run: npm login --scope=@your-scope --registry=https://registry.npmjs.org/ <<< "manisht72x\n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\n$manish.tanwar@xero.com" - working-directory: xero-node - - name: Run Build run: npm run build working-directory: xero-node - name: Publish to npm - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: npm publish --access public working-directory: xero-node