-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.06 KB
/
semantic-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release
on: workflow_dispatch
# push:
# branches:
# - main
# - master
jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
packages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.JG_SEMANTIC_RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.JG_SEMANTIC_RELEASE_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Install pnpm
uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- run: pnpm install
- run: pnpm build
- run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
DOCKER_REGISTRY_USER: ${{ github.actor }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}