Skip to content

Commit 0f9bd45

Browse files
authored
👷 ci: publish GitHub releases as lobe-tsukumo App (#3)
* 👷 ci: publish GitHub releases as lobe-tsukumo App * 👷 ci: authenticate checkout with lobe-tsukumo App token
1 parent 950be99 commit 0f9bd45

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,15 @@ jobs:
4242
runs-on: ubuntu-latest
4343

4444
steps:
45+
- uses: actions/create-github-app-token@v2
46+
id: app-token
47+
with:
48+
app-id: ${{ vars.LOBEHUB_BOT_APP_ID }}
49+
private-key: ${{ secrets.LOBEHUB_BOT_APP_PRIVATE_KEY }}
50+
4551
- uses: actions/checkout@v5
4652
with:
53+
token: ${{ steps.app-token.outputs.token }}
4754
fetch-depth: 0
4855
ref: ${{ github.ref_name }}
4956

@@ -81,5 +88,5 @@ jobs:
8188
- name: Release
8289
run: pnpm release
8390
env:
84-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
91+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
8592
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)