-
-
Notifications
You must be signed in to change notification settings - Fork 4
27 lines (27 loc) · 624 Bytes
/
ci.yml
File metadata and controls
27 lines (27 loc) · 624 Bytes
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
name: ci
on: [push]
permissions:
contents: read
pages: write
id-token: write
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24.x
- name: Build project
run: npm ci
- name: Run tests
run: npm test
- name: Create API Doc
run: npm run apidoc
- name: Deploy API Doc
if: github.ref == 'refs/heads/main'
uses: kayahr/deploy-github-pages-action@v4
with:
path: lib/apidoc