File tree Expand file tree Collapse file tree 1 file changed +6
-29
lines changed Expand file tree Collapse file tree 1 file changed +6
-29
lines changed Original file line number Diff line number Diff line change @@ -24,44 +24,21 @@ concurrency:
2424 group : " pages"
2525 cancel-in-progress : false
2626jobs :
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 : |
You can’t perform that action at this time.
0 commit comments