Skip to content

Commit

Permalink
Adding a debug step for publish workflow to test npm authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
vasu31dev committed Oct 17, 2024
1 parent 1825ddb commit 40ab901
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
types: [published]
jobs:
build:
runs-on:
labels: ubuntu-latest
runs-on: ubuntu-latest
permissions:
contents: read
steps:
Expand All @@ -14,9 +13,15 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "22"
node-version: '22'
registry-url: 'https://registry.npmjs.org/'
always-auth: true
# Debug step to verify npm login
- name: Verify npm login
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 40ab901

Please sign in to comment.