Skip to content

Commit

Permalink
Merge pull request #3 from xRealNeon/yarn-support
Browse files Browse the repository at this point in the history
Add yarn support
  • Loading branch information
xRealNeon authored Oct 6, 2021
2 parents 3ad035f + 4c3ecd1 commit 803b88b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ jobs:
| gitname | Git commit name | CI | ❌ |
| gitmsg | Git commit message | deploy | ❌ |
| cname | Custom domain | - | ❌ |
| useyarn | Use yarn to build | false | ❌ |
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,17 @@ inputs:
description: 'Your custom domain'
required: false
default: 'none'
useyarn:
description: 'Use yarn to build'
required: false
default: false
runs:
using: "composite"
steps:
- name: Build Vue
run: |
npm ci
npm run build
if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm ci; fi
if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi
cd dist
ln -s index.html 404.html
if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi
Expand Down

0 comments on commit 803b88b

Please sign in to comment.