From 94a0740c7f1ff76eba17643d44026e70949078bd Mon Sep 17 00:00:00 2001 From: rfaircloth-splunk Date: Wed, 21 Jul 2021 08:08:24 -0400 Subject: [PATCH] fix: run yarn to prep env --- action.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index b050f38..43cdde1 100644 --- a/action.yml +++ b/action.yml @@ -60,12 +60,13 @@ runs: env: INPUT_VERSION: ${{ inputs.version }} - run: | - if [ ! -z $INPUT_VERSION ] - then - yarn version --new-version $INPUT_VERSION --no-git-tag-version - fi if [ -f package.json ] then + yarn + if [ ! -z $INPUT_VERSION ] + then + yarn version --new-version $INPUT_VERSION --no-git-tag-version + fi yarn run build fi shell: bash