Skip to content

Commit

Permalink
enable corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
WhitePaper233 authored Nov 23, 2024
1 parent 0f2a376 commit 772c047
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 772c047

Please sign in to comment.