From 503384ccb3ea64366d884d294ece546467a9b6ba Mon Sep 17 00:00:00 2001 From: NeoCode Date: Fri, 20 Aug 2021 15:18:47 +0200 Subject: [PATCH 1/4] Add yarn support --- action.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 63b6748..9453d02 100644 --- a/action.yml +++ b/action.yml @@ -1,8 +1,5 @@ name: 'Vue to Github Pages' -branding: - icon: 'activity' - color: 'blue' -description: 'This Action will Build your Vue Project and deploy it to Github Pages' +description: 'Build Vue and deploy it to Github Pages' inputs: username: description: 'Your username' @@ -29,13 +26,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; else npm ci; fi + if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi cd dist if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi git config --global user.email "${{ inputs.gitemail }}" From 11a49b60f19e6e7cf92792e954ae7cb1261a1816 Mon Sep 17 00:00:00 2001 From: NeoCode Date: Fri, 20 Aug 2021 15:20:16 +0200 Subject: [PATCH 2/4] Added marketplace data --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9453d02..0908fc5 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,8 @@ name: 'Vue to Github Pages' -description: 'Build Vue and deploy it to Github Pages' +branding: + icon: 'activity' + color: 'blue' +description: 'This Action will Build your Vue Project and deploy it to Github Pages' inputs: username: description: 'Your username' From f1670bb4b39444ba5c492c52bf02c9181191b739 Mon Sep 17 00:00:00 2001 From: NeoCode Date: Fri, 20 Aug 2021 15:23:37 +0200 Subject: [PATCH 3/4] Added use yarn documentation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 70ebd06..768b2c9 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,4 @@ jobs: | gitname | Git commit name | CI | ❌ | | gitmsg | Git commit message | deploy | ❌ | | cname | Custom domain | - | ❌ | +| useyarn | Use yarn to build | false | ❌ | From 4c3ecd1f1bfc8fe9c0ff92e4c8d784df0db1df75 Mon Sep 17 00:00:00 2001 From: NeoCode Date: Tue, 31 Aug 2021 10:53:08 +0200 Subject: [PATCH 4/4] Add the --frozen-lockfile argument to yarn install --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0908fc5..ba5ed7f 100644 --- a/action.yml +++ b/action.yml @@ -38,7 +38,7 @@ runs: steps: - name: Build Vue run: | - if [ true == ${{ inputs.useyarn }} ]; then yarn install; else npm ci; fi + 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 if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi