Skip to content

Commit e12646c

Browse files
authored
ci(cd): setup npm trusted publishing
1 parent 0ee58e7 commit e12646c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: CD
33
on:
44
workflow_dispatch:
55

6-
permissions: read-all
6+
permissions:
7+
id-token: write
8+
contents: read
9+
710

811
jobs:
912
deploy_prod:
@@ -12,9 +15,6 @@ jobs:
1215
environment:
1316
name: Prod.env
1417
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
id-token: write
1818

1919
strategy:
2020
matrix:
@@ -34,4 +34,3 @@ jobs:
3434
semantic_version: 19.0.2
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
37-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)