File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3838| gitname | Git commit name | CI | ❌ |
3939| gitmsg | Git commit message | deploy | ❌ |
4040| cname | Custom domain | - | ❌ |
41+ | useyarn | Use yarn to build | false | ❌ |
Original file line number Diff line number Diff line change @@ -29,13 +29,17 @@ inputs:
2929 description : ' Your custom domain'
3030 required : false
3131 default : ' none'
32+ useyarn :
33+ description : ' Use yarn to build'
34+ required : false
35+ default : false
3236runs :
3337 using : " composite"
3438 steps :
3539 - name : Build Vue
3640 run : |
37- npm ci
38- npm run build
41+ if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm ci; fi
42+ if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi
3943 cd dist
4044 ln -s index.html 404.html
4145 if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi
You can’t perform that action at this time.
0 commit comments