Skip to content

Commit 803b88b

Browse files
authored
Merge pull request #3 from xRealNeon/yarn-support
Add yarn support
2 parents 3ad035f + 4c3ecd1 commit 803b88b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ jobs:
3838
| gitname | Git commit name | CI | ❌ |
3939
| gitmsg | Git commit message | deploy | ❌ |
4040
| cname | Custom domain | - | ❌ |
41+
| useyarn | Use yarn to build | false | ❌ |

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
3236
runs:
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

0 commit comments

Comments
 (0)