Skip to content

Commit db42464

Browse files
committed
Fix
1 parent d74e5b5 commit db42464

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/release.yml

+14-10
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: Release
1313
steps:
14+
- name: Generate Github App Token
15+
id: github_app_token
16+
uses: actions/create-github-app-token@v1
17+
with:
18+
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
19+
private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
20+
1421
- uses: actions/checkout@v4
1522
with:
1623
fetch-depth: 0
1724
ref: main
25+
token: ${{ steps.github_app_token.outputs.token }}
26+
1827
- uses: actions/setup-node@v4
1928
with:
2029
node-version: 20
30+
2131
- uses: pnpm/action-setup@v3
2232
with:
2333
run_install: true
24-
- run: |
25-
cd packages/bento-design-system
26-
pnpm version --no-git-tag-version --new-version ${{ github.ref_name }}
27-
28-
- name: Generate Github App Token
29-
id: github_app_token
30-
uses: actions/create-github-app-token@v1
31-
with:
32-
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
33-
private-key: ${{ secrets.RELEASE_BOT_APP_PRIVATE_KEY }}
3434

3535
- name: Commit & Push changes
3636
uses: actions-js/push@master
@@ -40,6 +40,10 @@ jobs:
4040
author_email: 168835274+buildo-release-bot[bot]@users.noreply.github.com
4141
github_token: ${{ steps.github_app_token.outputs.token }}
4242

43+
- run: |
44+
git config --global user.name "buildo-release-bot[bot]"
45+
git config --global user.email "168835274+your-app[bot]@users.noreply.github.com"
46+
4347
- name: Publish to npm
4448
uses: JS-DevTools/npm-publish@v3
4549
with:

0 commit comments

Comments
 (0)