Skip to content

Commit

Permalink
Update astro.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vivasvan1 authored Oct 13, 2023
1 parent f2a9261 commit c59a394
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/astro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ concurrency:
cancel-in-progress: false

env:
# BUILD_PATH: "." # default value when not using subfolders
BUILD_PATH: "docs"
BUILD_PATH: "." # default value when not using subfolders
# BUILD_PATH:

jobs:
build:
Expand All @@ -38,16 +38,16 @@ jobs:
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
if [ -f "${{ github.workspace }}/docs/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/docs/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
exit 1
Expand Down

0 comments on commit c59a394

Please sign in to comment.