Skip to content

Commit c66398a

Browse files
committed
Enable npm trusted publishing
1 parent d764b85 commit c66398a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
secrets:
1616
registry_token:
1717
description: The package registry token.
18-
required: true
18+
required: false
1919

2020
jobs:
2121
publish:

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ jobs:
4747
name: npm
4848
uses: ./.github/workflows/_publish.yml
4949
needs: build
50+
permissions:
51+
contents: read
52+
id-token: write
5053
with:
5154
artifact_name: ${{ needs.build.outputs.artifact_name }}
5255
registry_url: https://registry.npmjs.org
53-
secrets:
54-
registry_token: ${{ secrets.NPM_TOKEN }}
5556
github:
5657
name: GitHub Packages
5758
uses: ./.github/workflows/_publish.yml

0 commit comments

Comments
 (0)