Skip to content

Commit f6e369b

Browse files
committed
problem: doesn't publish to NPM
solution: use trusted publishing for npm packages rel: https://docs.npmjs.com/trusted-publishers
1 parent 76df6b4 commit f6e369b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write
9+
contents: read
10+
packages: write
11+
deployments: write
12+
artifact-metadata: write
13+
714
jobs:
815
publish-github:
916
runs-on: ubuntu-latest
@@ -76,9 +83,6 @@ jobs:
7683
with:
7784
ref: ${{ github.ref }}
7885

79-
- name: Configure NPM
80-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
81-
8286
- name: Set up PNPM
8387
uses: pnpm/action-setup@v4
8488
with:

0 commit comments

Comments
 (0)