Skip to content

Commit 3817488

Browse files
yamal reformat
1 parent 25bfc70 commit 3817488

File tree

1 file changed

+6
-29
lines changed

1 file changed

+6
-29
lines changed

.github/workflows/nextjs.yml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,44 +24,21 @@ concurrency:
2424
group: "pages"
2525
cancel-in-progress: false
2626
jobs:
27-
# Build job
28-
build:
29-
runs-on: ubuntu-latest
30-
31-
steps:
32-
27+
build:
28+
runs-on: unbuntu-latest
29+
steps:
3330
- name: Checkout
3431
uses: actions/checkout@v3
35-
- name: Detect package manager
36-
id: detect-package-manager
37-
run: |
38-
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
39-
echo "manager=yarn" >> $GITHUB_OUTPUT
40-
echo "command=install" >> $GITHUB_OUTPUT
41-
echo "runner=yarn" >> $GITHUB_OUTPUT
42-
exit 0
43-
elif [ -f "${{ github.workspace }}/package.json" ]; then
44-
echo "manager=npm" >> $GITHUB_OUTPUT
45-
echo "command=ci" >> $GITHUB_OUTPUT
46-
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
47-
exit 0
48-
else
49-
echo "Unable to determine package manager"
50-
exit 1
51-
fi
52-
- name: Setup Node
53-
uses: actions/setup-node@v3
54-
with:
55-
node-version: "19"
56-
cache: ${{ steps.detect-package-manager.outputs.manager }}
5732
# Deployment job
58-
deploy:
33+
deploy_:
5934
environment:
6035
name: github-pages
6136
url: ${{ steps.deployment.outputs.page_url }}
6237
runs-on: ubuntu-latest
6338
needs: build
6439
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v3
6542
- name: Detect package manager
6643
id: detect-package-manager
6744
run: |

0 commit comments

Comments
 (0)