diff --git a/.github/workflows/biome.yml b/.github/workflows/biome.yml index 4330103a99e..b1b18266503 100644 --- a/.github/workflows/biome.yml +++ b/.github/workflows/biome.yml @@ -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: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 921f7a81d59..a60a6a4b6e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} @@ -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 diff --git a/biome.json b/biome.json index b43ee7b36ac..a0ea1e46735 100644 --- a/biome.json +++ b/biome.json @@ -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", diff --git a/src/config/announcementConfig.ts b/src/config/announcementConfig.ts index 91d31ea188f..24bf553f877 100644 --- a/src/config/announcementConfig.ts +++ b/src/config/announcementConfig.ts @@ -5,8 +5,7 @@ export const announcementConfig: AnnouncementConfig = { title: "关于这里", // 公告内容 - content: - "这里记录技术实践中的探索与踩坑,也写点别的——内容不设限,慢慢更新。", + content: "这里记录技术实践中的探索与踩坑,也写点别的——内容不设限,慢慢更新。", // 是否允许用户关闭公告 closable: true, diff --git a/src/config/commentConfig.ts b/src/config/commentConfig.ts index a72e107591f..f40b4fcaf15 100644 --- a/src/config/commentConfig.ts +++ b/src/config/commentConfig.ts @@ -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", },