From 381b3818b7cfd7e1c65d0596402ab61c64dac1ec Mon Sep 17 00:00:00 2001 From: QIU SHENGMING Date: Fri, 2 Oct 2026 14:05:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/build.ym?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: QIU SHENGMING --- .github/workflows/build.yml | 134 ++++++++++++++++++------------------ 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d79658e..3185d37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,67 +1,67 @@ -name: Build and Check - -on: - push: - branches: [ main ] # Adjust branches as needed - pull_request: - branches: [ main ] # Adjust branches as needed - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: read - -jobs: - check: - strategy: - matrix: - node: [ 22, 23 ] - runs-on: ubuntu-latest - name: Astro Check for Node.js ${{ matrix.node }} - steps: - - name: Setup Node.js - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 - with: - node-version: ${{ matrix.node }} # Use LTS - - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup pnpm - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.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@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 - with: - node-version: ${{ matrix.node }} - - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Setup pnpm - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - with: - run_install: false # Disable auto-install - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Run Astro Build - run: pnpm astro build +# name: Build and Check +# +# on: +# push: +# branches: [ main ] # Adjust branches as needed +# pull_request: +# branches: [ main ] # Adjust branches as needed +# +# concurrency: +# group: ${{ github.workflow }}-${{ github.ref }} +# cancel-in-progress: true +# +# permissions: +# contents: read +# +# jobs: +# check: +# strategy: +# matrix: +# node: [ 22, 23 ] +# runs-on: ubuntu-latest +# name: Astro Check for Node.js ${{ matrix.node }} +# steps: +# - name: Setup Node.js +# uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 +# with: +# node-version: ${{ matrix.node }} # Use LTS +# +# - name: Checkout +# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 +# +# - name: Setup pnpm +# uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.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@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 +# with: +# node-version: ${{ matrix.node }} +# +# - name: Checkout +# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 +# +# - name: Setup pnpm +# uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 +# with: +# run_install: false # Disable auto-install +# +# - name: Install dependencies +# run: pnpm install --frozen-lockfile +# +# - name: Run Astro Build +# run: pnpm astro build \ No newline at end of file