From 40ab90126b8fe88f4e6ba4e9e12b264d07903f51 Mon Sep 17 00:00:00 2001 From: Vasudeva Annam Date: Thu, 17 Oct 2024 14:09:06 +0100 Subject: [PATCH] Adding a debug step for publish workflow to test npm authentication --- .github/workflows/publish-release.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index d27ed3f..507f619 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -4,8 +4,7 @@ on: types: [published] jobs: build: - runs-on: - labels: ubuntu-latest + runs-on: ubuntu-latest permissions: contents: read steps: @@ -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 }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}