Skip to content

Commit f6c4b77

Browse files
committed
chore: clean up cache files and update .gitignore for Vitepress
1 parent 4d35548 commit f6c4b77

21 files changed

+21
-32480
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ on:
55
branches:
66
- master
77

8-
permissions:
9-
contents: write # ✅ Grants write access to push changes
10-
pull-requests: write # ✅ Allows creating and merging PRs
11-
128
jobs:
13-
format-and-deploy:
9+
publish-docs:
1410
runs-on: ubuntu-latest
1511
steps:
1612
- name: Checkout Repository 🛎️
1713
uses: actions/checkout@v4
1814
with:
19-
persist-credentials: false # Prevents using default GitHub token
15+
persist-credentials: false
2016

2117
- name: Setup Node.js 🔧
2218
uses: actions/setup-node@v4
@@ -26,47 +22,6 @@ jobs:
2622
- name: Install Dependencies 📦
2723
run: npm ci
2824

29-
- name: Format Code 🎨
30-
run: npm run format
31-
32-
- name: Check for Code Changes 🔍
33-
id: check_changes
34-
run: |
35-
git add .
36-
if git diff --cached --quiet; then
37-
echo "No changes detected."
38-
echo "changes_found=false" >> $GITHUB_ENV
39-
else
40-
echo "Changes detected."
41-
echo "changes_found=true" >> $GITHUB_ENV
42-
fi
43-
44-
- name: Create Pull Request ✨
45-
if: env.changes_found == 'true'
46-
uses: peter-evans/create-pull-request@v6
47-
with:
48-
token: ${{ secrets.GITHUB_TOKEN }}
49-
commit-message: 'chore: Format code'
50-
title: 'Code Formatting Updates'
51-
body: 'This PR contains automated code formatting changes.'
52-
branch: 'auto-format'
53-
base: 'master'
54-
delete-branch: true
55-
56-
- name: Auto-Merge PR 🤖
57-
if: env.changes_found == 'true'
58-
uses: actions/github-script@v7
59-
with:
60-
github-token: ${{ secrets.GITHUB_TOKEN }}
61-
script: |
62-
const { owner, repo } = context.repo;
63-
const prs = await github.rest.pulls.list({ owner, repo, head: 'auto-format' });
64-
if (prs.data.length > 0) {
65-
const prNumber = prs.data[0].number;
66-
await github.rest.pulls.merge({ owner, repo, pull_number: prNumber, merge_method: 'squash' });
67-
console.log(`Merged PR #${prNumber}`);
68-
}
69-
7025
- name: Build Documentation 🏗
7126
run: npm run docs:build
7227

.gitignore

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Vscode
12
.vscode
3+
4+
# Vitepress
25
.vitepress/dist
3-
node_modules/
6+
.vitepress/cache
7+
.vitepress/.temp
8+
9+
# Node.js
10+
node_modules/
11+
12+
# Logs
13+
logs
14+
*.log
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
lerna-debug.log*

.vitepress/cache/deps/_metadata.json

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)