File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,29 +19,10 @@ jobs:
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout
22- uses : actions/checkout@v4
22+ uses : actions/checkout@v6
2323
24- - name : Setup Node
25- uses : actions/setup-node@v4
26- with :
27- node-version : 24
28-
29- - name : Get yarn cache directory
30- id : yarn-cache-dir-path
31- run : |
32- echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
33-
34- - uses : actions/cache@v4
35- with :
36- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
37- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38- restore-keys : |
39- ${{ runner.os }}-yarn-
40-
41- - name : yarn install and generate docs
42- run : |
43- yarn
44- yarn db-doc:generate
24+ - name : generate DB docs
25+ run : mise run generate-db-docs
4526
4627 - name : Upload artifact
4728 uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change @@ -66,3 +66,8 @@ run = "jest --forceExit --verbose --coverage --silent --detectOpenHandles --maxW
6666
6767[tasks .test ]
6868depends = [" vitest" , " e2e" ]
69+
70+ [tasks .generate-db-docs ]
71+ depends = [" pnpm-install" ]
72+ description = " Generate documentation for the database schemas"
73+ run = " drizzle-kit export > schema.sql && npx @liam-hq/cli erd build --input schema.sql --format postgres --output-dir db-documentation"
You can’t perform that action at this time.
0 commit comments