From 05bfc25ec1154355b8414dc16a2c9c814b5217e4 Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Mon, 12 Jan 2026 09:13:45 -0800 Subject: [PATCH 1/2] fix(publish): Update Github Action to use pnpm correctly --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bd45c62..b585260 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,8 +35,13 @@ jobs: - name: Run Tests run: pnpm --filter=@hcaptcha-react/lib run test:unit + - name: Set up npm authentication + run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Publish package shell: bash run: pnpm publish --no-git-checks --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file From a1094afded5938578889b781d677bb7c27421b3f Mon Sep 17 00:00:00 2001 From: Brad Peters Date: Mon, 12 Jan 2026 09:17:03 -0800 Subject: [PATCH 2/2] fix: revert secret name --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b585260..810abd1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,10 +38,10 @@ jobs: - name: Set up npm authentication run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Publish package shell: bash run: pnpm publish --no-git-checks --access public env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} \ No newline at end of file