Skip to content

Commit 6d59723

Browse files
chore(ci): publish with provenance (#67)
1 parent 0eb5329 commit 6d59723

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ on:
55
branches: [main]
66

77
permissions:
8-
contents: write
9-
pull-requests: write
8+
contents: read
109

1110
env:
1211
YARN_ENABLE_GLOBAL_CACHE: false
1312

1413
jobs:
1514
release-please:
1615
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: write
1719
outputs:
1820
release_created: ${{ steps.release.outputs.release_created }}
1921
release_tag: ${{ steps.release.outputs.tag_name }}
@@ -27,6 +29,9 @@ jobs:
2729
needs: release-please
2830
if: ${{ needs.release-please.outputs.release_created }}
2931
runs-on: ubuntu-latest
32+
permissions:
33+
contents: read
34+
id-token: write
3035
steps:
3136
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3237

@@ -55,6 +60,6 @@ jobs:
5560
run: |
5661
corepack yarn install --immutable
5762
corepack yarn build
58-
corepack yarn workspaces foreach --all --no-private npm publish --access public
63+
corepack yarn workspaces foreach --all --no-private npm publish --provenance --access public
5964
env:
6065
YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)