File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,13 @@ jobs:
2828
2929 - name : Set publish version
3030 id : set-publish-version
31- if : github.event.inputs.tag == 'nightly'
3231 run : |
32+ CURRENT_VERSION=$(npm pkg get version | tr -d '"')
3333 if [ "${{ github.event.inputs.tag }}" == "nightly" ]; then
34- CURRENT_VERSION=$(npm pkg get version | tr -d '"')
35- NIGHTLY_VERSION="${CURRENT_VERSION}-nightly-${GITHUB_SHA::7}"
34+ NIGHTLY_VERSION="${CURRENT_VERSION}-nightly-${GITHUB_SHA}"
3635 echo "VERSION=${NIGHTLY_VERSION}" >> $GITHUB_OUTPUT
3736 else
38- echo "VERSION=$(npm pkg get version | tr -d '"') " >> $GITHUB_OUTPUT
37+ echo "VERSION=${CURRENT_VERSION} " >> $GITHUB_OUTPUT
3938 fi
4039 outputs :
4140 VERSION : ${{ steps.set-publish-version.outputs.VERSION }}
You can’t perform that action at this time.
0 commit comments