Skip to content

Commit 60d07d9

Browse files
restfulheadPatrick Ruhkopf
authored andcommitted
fix: release workflow
1 parent 41bb483 commit 60d07d9

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
token: ${{ secrets.GITHUB_TOKEN_PARAM }}
2124

2225
- name: Setting up ${{ matrix.node-version }}
2326
uses: actions/setup-node@v3
@@ -40,9 +43,6 @@ jobs:
4043
- name: Release preview
4144
run: |
4245
npx auto shipit --dry-run
43-
git config --global user.name 'Patrick Ruhkopf [bot]'
44-
git config --global user.email 'restfulhead@users.noreply.github.com'
45-
git push
4646
4747
env:
48-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
48+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
token: ${{ secrets.GITHUB_TOKEN_PARAM }}
1417

1518
- name: Setting up Node.js
1619
uses: actions/setup-node@v3
@@ -25,7 +28,11 @@ jobs:
2528
run: npm run build:prod
2629

2730
- name: Publish
28-
run: npx auto shipit
31+
run: |
32+
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
33+
git config user.name "$GITHUB_ACTOR"
34+
npx auto shipit
35+
git push
2936
env:
30-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
37+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3138
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)