Skip to content

Commit

Permalink
feat: auto-gen api reports and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyu2001 committed Jul 22, 2024
1 parent f77d847 commit c299725
Show file tree
Hide file tree
Showing 54 changed files with 33,411 additions and 19 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release

on:
push:
tags:
- "v*"
workflow_dispatch: {}

permissions:
id-token: write
contents: write
packages: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4

- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm
registry-url: "https://registry.npmjs.org/"
scope: "@opengovsg"

- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Check API report
run: pnpm ci:api-report

- name: Generate documentation
run: pnpm build:docs

- name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: apps/docs/.vitepress/dist
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
run: pnpm install

- name: Lint 🛀
run: pnpm -r run lint
run: pnpm lint
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: Release

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: Run tests
run: |
pnpm -r run test
pnpm test
build:
runs-on: ubuntu-latest
Expand All @@ -48,4 +48,4 @@ jobs:

- name: Compile
run: |
pnpm -r run build
pnpm build
Loading

0 comments on commit c299725

Please sign in to comment.