Skip to content

Commit 680d8b6

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

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@v4
26-
with:
27-
fetch-depth: 0
2826

2927
- uses: actions/setup-node@v4
3028
with:
@@ -33,18 +31,10 @@ jobs:
3331

3432
- run: npm ci
3533

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 }}-
34+
- name: Config git user
35+
run: |
36+
git config --global user.name "${{ secrets.GITHUB_ACTOR_NAME }}"
37+
git config --global user.email "${{ secrets.GITHUB_ACTOR_EMAIL }}""
4838
4939
- name: Create release PR or publish
5040
id: changesets
@@ -53,6 +43,7 @@ jobs:
5343
publish: npm run release
5444
commit: 'chore(release): publish'
5545
title: 'chore(release): publish'
46+
setupGitUser: false
5647
env:
57-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
5849
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)