Skip to content

Commit 131b591

Browse files
committed
fix(ci): add --access public for npm publish
1 parent 5c4c646 commit 131b591

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
registry-url: https://registry.npmjs.org
6060
- run: pnpm install --frozen-lockfile
6161
- run: pnpm build
62-
- run: pnpm publish --provenance --no-git-checks
62+
- run: pnpm publish --provenance --no-git-checks --access public
6363
env:
6464
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6565
- run: gh release create ${{ github.ref_name }} --generate-notes

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
},
3232
"packageManager": "pnpm@10.30.3",
3333
"license": "MIT",
34+
"publishConfig": {
35+
"access": "public"
36+
},
3437
"files": [
3538
"dist"
3639
],

0 commit comments

Comments
 (0)