Skip to content

Commit b9c50c2

Browse files
committed
Switch to pnpm for docs deploy workflow and update .gitignore
Updated the GitHub Actions workflow to use pnpm instead of npm for installing dependencies and building documentation. Modified .gitignore to exclude SQLite and generic database files. Removed the example SQLite database file from version control.
1 parent 9c38395 commit b9c50c2

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'docs/**'
99
- '.github/workflows/deploy-docs.yml'
1010
- 'package.json'
11-
- 'package-lock.json'
11+
- 'pnpm-lock.yaml'
1212

1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
@@ -35,20 +35,24 @@ jobs:
3535
with:
3636
fetch-depth: 0 # Not needed if lastUpdated is not enabled
3737

38+
- uses: pnpm/action-setup@v3
39+
with:
40+
version: 9
41+
3842
- name: Setup Node
3943
uses: actions/setup-node@v4
4044
with:
4145
node-version: 20
42-
cache: npm
46+
cache: pnpm
4347

4448
- name: Setup Pages
4549
uses: actions/configure-pages@v4
4650

4751
- name: Install dependencies
48-
run: npm ci
52+
run: pnpm install
4953

5054
- name: Build with VitePress
51-
run: npm run docs:build
55+
run: pnpm run docs:build
5256

5357
- name: Upload artifact
5458
uses: actions/upload-pages-artifact@v3

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ dist
88

99
# VitePress
1010
docs/.vitepress/cache
11-
docs/.vitepress/dist
11+
docs/.vitepress/dist
12+
13+
# Database
14+
*.sqlite3
15+
*.db
-20 KB
Binary file not shown.

0 commit comments

Comments
 (0)