-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.01 KB
/
release.yml
File metadata and controls
42 lines (36 loc) · 1.01 KB
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
name: CI + Semantic Release
on:
push:
branches:
- staging
- 'release/*'
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
# 1) create 1-hour installation token
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.HEAVB_SV_ID }} # numeric App ID
private-key: ${{ secrets.HEAVB_SV_KEY }} # full PEM
# 2) checkout with that token
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
# 3) node setup & install
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
# 4) run semantic-release with the same token
- name: Run semantic-release
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: npx semantic-release