Skip to content

Commit 07993a4

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

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/semantic-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,19 @@ 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+
GITHUB_ACTION: "yes"
29+
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
30+
HACKAGE_KEY: "${{ secrets.HACKAGE_TOKEN }}"
2431

2532
with:
2633
ci: ${{ github.ref == 'refs/heads/main' }}

0 commit comments

Comments
 (0)