Skip to content

Commit 329db39

Browse files
committed
add CI job on push which keeps docs sync
1 parent 63d2c08 commit 329db39

File tree

4 files changed

+348
-3
lines changed

4 files changed

+348
-3
lines changed

.github/share-actions/deploy-just-saved-api-reference/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ runs:
1111
- name: 📦 Setup node and pnpm install
1212
uses: ./.github/share-actions/setup-node-and-pnpm-install
1313

14-
- name: 🔧 Push API reference documentation
15-
shell: bash
14+
- name: 🔧 Run generation
1615
run: pnpm run-all
16+
shell: bash
1717

1818
- name: 🚀 Push API reference documentation
1919
uses: ./.github/share-actions/commit-and-push-docs

.github/workflows/gh-pages.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Keep docs sync
2+
3+
on:
4+
push:
5+
branches:
6+
- gh-pages
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 📥 Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: 📦 Setup node and pnpm install
16+
uses: ./.github/share-actions/setup-node-and-pnpm-install
17+
18+
- name: 🔧 Run generation
19+
run: pnpm run-all
20+
21+
# there is no push if no diff
22+
- name: 🚀 Push API reference documentation
23+
uses: ./.github/share-actions/commit-and-push-docs

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: "v4.6.0"
4+
hooks:
5+
- id: check-case-conflict
6+
- id: check-merge-conflict
7+
- id: check-toml
8+
- id: check-yaml
9+
exclude: '(docs)/.*'
10+
- id: end-of-file-fixer
11+
exclude: '(docs)/.*'
12+
- id: trailing-whitespace
13+
exclude: '(docs)/.*'
14+
15+
- repo: https://github.com/biomejs/pre-commit
16+
rev: "v0.4.0"
17+
hooks:
18+
- id: biome-check
19+
additional_dependencies: ["@biomejs/[email protected]"]

0 commit comments

Comments
 (0)