Skip to content

Commit 4186064

Browse files
committed
feat: provenance publishing
1 parent dbbe2b1 commit 4186064

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
- 'plugins/**'
88
workflow_dispatch:
99

10+
# Required for trusted publishing
11+
permissions:
12+
contents: read
13+
id-token: write # Needed for provenance and trusted publishing
14+
1015
concurrency: ${{ github.workflow }}-${{ github.ref }}
1116

1217
jobs:
@@ -21,7 +26,8 @@ jobs:
2126
uses: actions/setup-node@v3
2227
with:
2328
node-version: 20.x
24-
cache: 'yarn'
29+
cache: 'yarn'
30+
registry-url: 'https://registry.npmjs.org'
2531

2632
- name: Install Dependencies
2733
run: yarn install --frozen-lockfile
@@ -30,7 +36,6 @@ jobs:
3036
id: changesets
3137
uses: changesets/action@v1
3238
with:
33-
publish: yarn changeset publish
39+
publish: yarn changeset publish --provenance
3440
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)