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