Skip to content

Commit

Permalink
add a login step
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 27, 2024
1 parent f79b605 commit 70bfdc8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ jobs:
run: npm ci
working-directory: xero-node

- name: Login to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
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

0 comments on commit 70bfdc8

Please sign in to comment.