Skip to content

Commit

Permalink
Update nextjs_GithubPage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Elpiu committed Apr 23, 2024
1 parent 7a91240 commit fc23560
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nextjs_GithubPage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -32,9 +32,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Navigate to project directory
run: cd personal-webiste-nextjs
- name: Detect package manager
id: detect-package-manager
working-directory: personal-webiste-nextjs
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit fc23560

Please sign in to comment.