Skip to content

Commit 1921c40

Browse files
committed
ci: run workflows in release PR (#40)
Closes #39
1 parent fa030f0 commit 1921c40

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ jobs:
1616

1717
if: startsWith(github.repository, 'StyleShit/')
1818

19-
permissions:
20-
contents: write # to create release (changesets/action)
21-
issues: write # to post issue comments (changesets/action)
22-
pull-requests: write # to create pull request (changesets/action)
23-
2419
steps:
2520
- uses: actions/checkout@v4
2621
with:
@@ -46,13 +41,20 @@ jobs:
4641
${{ runner.os }}-build-
4742
${{ runner.os }}-
4843
44+
# See https://github.com/actions/checkout/blob/85e6279cec87321a52edac9c87bce653a07cf6c2/README.md#push-a-commit-using-the-built-in-token
45+
- name: Config git user
46+
run: |
47+
git config --global user.name "github-actions[bot]"
48+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
49+
4950
- name: Create release PR or publish
5051
id: changesets
5152
uses: changesets/action@v1
5253
with:
5354
publish: npm run release
5455
commit: 'chore(release): publish'
5556
title: 'chore(release): publish'
57+
setupGitUser: false
5658
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
5860
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)