File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 51
51
git config --global user.name "${{ github.actor }}"
52
52
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
53
53
- name : npm version ${{ inputs.version }}
54
- run : echo "version=$(npm version ${{ inputs.version }}${{ startsWith(inputs.version, 'pre') && '--preid beta' || '' }})" >> "$GITHUB_ENV"
54
+ run : echo "version=$(npm version ${{ inputs.version }}${{ startsWith(inputs.version, 'pre') && ' --preid beta' || '' }})" >> "$GITHUB_ENV"
55
+ - name : Validate npm version
56
+ # the above step silently fails, so validate the output was set
57
+ run : |
58
+ if [[ -z ${{ env.version }} ]]; then
59
+ exit 1;
60
+ else
61
+ echo ${{ env.version }}
62
+ fi
55
63
- name : git push
56
64
run : git push && git push origin ${{ env.version }}
You can’t perform that action at this time.
0 commit comments