-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.08 KB
/
release.yml
File metadata and controls
47 lines (47 loc) · 1.08 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
43
44
45
46
47
name: Release
on:
push:
branches: main
concurrency: release
permissions:
contents: read
jobs:
ci:
name: CI
permissions:
contents: read
security-events: write
uses: ./.github/workflows/ci.yml
cd:
name: CD
runs-on: ubuntu-latest
timeout-minutes: 15
needs:
- ci
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
with:
persist-credentials: false
- name: Set up node
uses: actions/setup-node@v6.3.0
with:
node-version-file: .nvmrc
cache: npm
- name: Install packages
run: npm ci
- name: Run build
run: npm run build
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v2.2.1
with:
app-id: ${{secrets.GH_APP_ID}}
private-key: ${{secrets.GH_APP_PRIVATE_KEY}}
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{steps.app-token.outputs.token}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}