From 772c047cc10aabfc6a1bdbc781f0478bd679e2f1 Mon Sep 17 00:00:00 2001 From: WhitePaper233 <30739658+WhitePaper233@users.noreply.github.com> Date: Sun, 24 Nov 2024 01:12:03 +0800 Subject: [PATCH] enable corepack --- .github/workflows/astro.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml index 54d4be4..5d2a604 100644 --- a/.github/workflows/astro.yml +++ b/.github/workflows/astro.yml @@ -1,32 +1,21 @@ -# Sample workflow for building and deploying an Astro site to GitHub Pages -# -# To get started with Astro see: https://docs.astro.build/en/getting-started/ -# name: Deploy Astro site to Pages on: - # Runs on pushes targeting the default branch push: branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" cancel-in-progress: false env: - BUILD_PATH: "." # default value when not using subfolders - # BUILD_PATH: subfolder + BUILD_PATH: "." jobs: build: @@ -60,6 +49,8 @@ jobs: node-version: "20" cache: ${{ steps.detect-package-manager.outputs.manager }} cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }} + - name: Enable Corepack + run: corepack enable - name: Setup Pages id: pages uses: actions/configure-pages@v5