From 9a66d66e5478b72fe203be40cbc00c880b4d7258 Mon Sep 17 00:00:00 2001 From: bendera Date: Fri, 25 Oct 2024 14:30:27 +0200 Subject: [PATCH] Update deploy script --- .github/workflows/astro.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml index 5bf4577..bd47cff 100644 --- a/.github/workflows/astro.yml +++ b/.github/workflows/astro.yml @@ -38,13 +38,13 @@ jobs: - name: Detect package manager id: detect-package-manager run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then + if [ -f "${{ github.workspace }}/docs/yarn.lock" ]; then echo "manager=yarn" >> $GITHUB_OUTPUT echo "command=install" >> $GITHUB_OUTPUT echo "runner=yarn" >> $GITHUB_OUTPUT echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then + elif [ -f "${{ github.workspace }}/docs/package.json" ]; then echo "manager=npm" >> $GITHUB_OUTPUT echo "command=ci" >> $GITHUB_OUTPUT echo "runner=npx --no-install" >> $GITHUB_OUTPUT