Skip to content

Commit fd34bc7

Browse files
authored
Update GitHub action to support NPM trusted publishing. (#50)
1 parent 65fa66d commit fd34bc7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build and Publish plugin
22
on:
33
release:
44
types: [published]
5+
permissions:
6+
id-token: write
7+
contents: read
58
jobs:
69
build:
710
runs-on: ubuntu-latest
@@ -17,5 +20,3 @@ jobs:
1720
run: npm ci
1821
- name: Publish on NPM 📦
1922
run: npm publish
20-
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)