diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bd45c62..810abd1 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_AUTH_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_AUTH_TOKEN }} \ No newline at end of file