Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/biome.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Code quality

on:
push:
branches: [ master ] # Adjust branches as needed
pull_request:
branches: [ master ] # Adjust branches as needed
branches: [esa]

jobs:
quality:
Expand Down
49 changes: 12 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Build and Check

on:
push:
branches: [ master ] # Adjust branches as needed
pull_request:
branches: [ master ] # Adjust branches as needed
branches: [esa]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -15,53 +13,30 @@ permissions:

jobs:
check:
strategy:
matrix:
node: [ 22, 23 ]
name: Blog checks
runs-on: ubuntu-latest
name: Astro Check for Node.js ${{ matrix.node }}
steps:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node }} # Use LTS

- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Setup pnpm
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
with:
run_install: false # Disable auto-install

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Astro Check
run: pnpm astro check

build:
strategy:
matrix:
node: [ 22, 23 ]
runs-on: ubuntu-latest
name: Astro Build for Node.js ${{ matrix.node }} # Corrected job name
steps:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node }}

- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
node-version: '22'

- name: Setup pnpm
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
with:
run_install: false # Disable auto-install
run_install: false

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run Astro Build
run: pnpm astro build
- name: Run Astro check
run: pnpm check

- name: Run TypeScript check
run: pnpm type-check

- name: Build with ESA's production command
run: pnpm build
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.6.2/schema.json",
"$schema": "https://biomejs.dev/schemas/2.6.3/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
Expand Down
3 changes: 1 addition & 2 deletions src/config/announcementConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export const announcementConfig: AnnouncementConfig = {
title: "关于这里",

// 公告内容
content:
"这里记录技术实践中的探索与踩坑,也写点别的——内容不设限,慢慢更新。",
content: "这里记录技术实践中的探索与踩坑,也写点别的——内容不设限,慢慢更新。",

// 是否允许用户关闭公告
closable: true,
Expand Down
3 changes: 2 additions & 1 deletion src/config/commentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const commentConfig: CommentConfig = {
// 中国推荐1: https://registry.npmmirror.com/twikoo/1.7.14/files/dist/twikoo.min.js
// 中国推荐2: https://s4.zstatic.net/npm/twikoo@1.7.14/dist/twikoo.min.js
// 国际推荐: https://cdn.jsdelivr.net/npm/twikoo@1.7.14/dist/twikoo.min.js
jsUrl: "https://registry.npmmirror.com/twikoo/2.0.17/files/dist/twikoo.min.js",
jsUrl:
"https://registry.npmmirror.com/twikoo/2.0.17/files/dist/twikoo.min.js",
// Twikoo 自定义 CSS 文件地址,为空则不加载
cssUrl: "/assets/css/twikoo-custom.css",
},
Expand Down
Loading