Skip to content

Commit 32797ba

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

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,11 @@ jobs:
3333

3434
- run: npm ci
3535

36-
- name: Cache build
37-
id: cache-build
38-
uses: actions/cache@v4
39-
env:
40-
cache-name: cache-build
41-
with:
42-
path: ./dist
43-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
44-
restore-keys: |
45-
${{ runner.os }}-build-${{ env.cache-name }}-
46-
${{ runner.os }}-build-
47-
${{ runner.os }}-
36+
# See https://github.com/actions/checkout/blob/85e6279cec87321a52edac9c87bce653a07cf6c2/README.md#push-a-commit-using-the-built-in-token
37+
- name: Config git user
38+
run: |
39+
git config --global user.name "github-actions[bot]"
40+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
4841
4942
- name: Create release PR or publish
5043
id: changesets
@@ -53,6 +46,7 @@ jobs:
5346
publish: npm run release
5447
commit: 'chore(release): publish'
5548
title: 'chore(release): publish'
49+
setupGitUser: false
5650
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
5852
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)