Skip to content

Commit 87860b1

Browse files
committed
build: switch npm to trusted publishing
1 parent 4d3539f commit 87860b1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Publish Package to npm
22
on:
33
release:
44
types: [published]
5+
6+
permissions:
7+
id-token: write # Required for OIDC
8+
contents: read
9+
510
jobs:
611
build:
712
runs-on: ubuntu-latest
@@ -24,6 +29,3 @@ jobs:
2429
run: pnpm build
2530

2631
- run: pnpm publish --access public --no-git-checks
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
29-

0 commit comments

Comments
 (0)