Skip to content

Commit d1b3dd1

Browse files
authored
fix(publish): Update Github Action to use pnpm correctly (#361)
1 parent 5c6a8fe commit d1b3dd1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/publish.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@ jobs:
3535
- name: Run Tests
3636
run: pnpm --filter=@hcaptcha-react/lib run test:unit
3737

38+
- name: Set up npm authentication
39+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
40+
env:
41+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
42+
3843
- name: Publish package
3944
shell: bash
4045
run: pnpm publish --no-git-checks --access public
4146
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)