-
-
Notifications
You must be signed in to change notification settings - Fork 20
61 lines (48 loc) · 1.32 KB
/
release.yml
File metadata and controls
61 lines (48 loc) · 1.32 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: NPM Release
on:
push:
tags:
- '*'
permissions:
id-token: write # Required for OIDC
contents: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Update npm
run: npm install -g npm@latest
- name: npm install
run: cd api/web && npm install
- name: Build Types
run: cd api/web && npm run build:types
- name: Build TypeDocs
run: cd api/web && npm run doc
- name: Upload TypeDoc artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./api/web/dist/typedoc
- name: npm publish
run: cd api/web && npm publish --provenance --access public
- name: Generate CHANGELOG
run: grep -Pzo "### ${{ github.ref_name }}(?s).*?(?=###)" CHANGELOG.md > RELEASE
- name: Github Release
uses: softprops/action-gh-release@v2
with:
body_path: RELEASE
deploy-pages:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy TypeDocs to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4