File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,21 @@ jobs:
5050 exit 1
5151 fi
5252
53- echo ::set-env name=EXT_VERSION::" ${TAGGED_VERSION}"
53+ echo "EXT_VERSION= ${TAGGED_VERSION}" >> $GITHUB_ENV
5454 WRITTEN_VERSION="$(cat package.json | jq '.version' -r)"
5555
56- if [[ ${TAGGED_VERSION} == *"-"* ]]; then
57- echo ::set-env name=EXT_ISPREVIEW::1
56+ if [[ "${TAGGED_VERSION}" == *"-"* ]]; then
57+ if [[ ! "${TAGGED_VERSION}" == "${WRITTEN_VERSION}"-rc.* ]]; then
58+ echo "Prerelease Tag and Version in package.json are not compatible: '${TAGGED_VERSION}' vs '${WRITTEN_VERSION}'"
59+ exit 1
60+ fi
61+ echo "EXT_ISPREVIEW=1" >> $GITHUB_ENV
5862 else
5963 if [[ "${TAGGED_VERSION}" != "${WRITTEN_VERSION}" ]]; then
6064 echo "Release Tag and Version in package.json do not match: '${TAGGED_VERSION}' vs '${WRITTEN_VERSION}'"
6165 exit 1
6266 fi
63- echo ::set-env name= EXT_ISPREVIEW::0
67+ echo " EXT_ISPREVIEW=0" >> $GITHUB_ENV
6468 fi
6569
6670 - name : stamp version
You can’t perform that action at this time.
0 commit comments