Skip to content

Commit 4bd995a

Browse files
committed
ci: convert semantic-release to org setup
1 parent 398803c commit 4bd995a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/semantic-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ jobs:
1515
with:
1616
persist-credentials: false
1717

18+
- uses: actions/create-github-app-token@v2
19+
id: app-token
20+
with:
21+
app-id: "${{ secrets.SEMANTIC_RELEASE_APP_ID }}"
22+
private-key: "${{ secrets.SEMANTIC_RELEASE_PRIVATE_KEY }}"
23+
1824
- name: Semantic release
1925
id: semantic
2026
uses: cycjimmy/semantic-release-action@v4
2127
env:
22-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
23-
HACKAGE_KEY: ${{ secrets.HACKAGE_TOKEN }}
28+
GH_TOKEN: "x-access-token:${{ steps.app-token.outputs.token }}"
29+
HACKAGE_KEY: "${{ secrets.HACKAGE_TOKEN }}"
2430

2531
with:
2632
ci: ${{ github.ref == 'refs/heads/main' }}

0 commit comments

Comments
 (0)