Skip to content

Commit 4fca1b1

Browse files
committed
ci: revert usage of standard GITHUB_TOKEN
This prevented running automated checks in the generated PR, as a built-in GitHub protection
1 parent 8d4d846 commit 4fca1b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
environment: publish
1212
permissions:
13-
contents: write # Needed to update Releases in GitHub after publishing
14-
pull-requests: write # Needed to create and update pull requests
13+
contents: read # since GH_TOKEN is provided, we only need 'read'
1514
id-token: write # https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
1615

1716
steps:
@@ -50,6 +49,7 @@ jobs:
5049
id: changesets
5150
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
5251
env:
52+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
5353
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
5454
GIT_AUTHOR_NAME: "NL Design System"
5555
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}

0 commit comments

Comments
 (0)