Skip to content

Commit

Permalink
hhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
microbecode committed Nov 8, 2023
1 parent bc8a674 commit 10aeee7
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ concurrency:
group: "pages"
cancel-in-progress: false

defaults:
run:
working-directory: ./frontend

jobs:
# Build job
build:
Expand All @@ -40,14 +36,14 @@ jobs:
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/frontend/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
echo "manager=./frontend/yarn" >> $GITHUB_OUTPUT
echo "command=./frontend/install" >> $GITHUB_OUTPUT
echo "runner=./frontend/yarn" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/frontend/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
echo "manager=./frontend/npm" >> $GITHUB_OUTPUT
echo "command=./frontend/ci" >> $GITHUB_OUTPUT
echo "runner=./frontend/npx --no-install" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
Expand Down

0 comments on commit 10aeee7

Please # to comment.