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:
50
50
exit 1
51
51
fi
52
52
53
- echo ::set-env name=EXT_VERSION::" ${TAGGED_VERSION}"
53
+ echo "EXT_VERSION= ${TAGGED_VERSION}" >> $GITHUB_ENV
54
54
WRITTEN_VERSION="$(cat package.json | jq '.version' -r)"
55
55
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
58
62
else
59
63
if [[ "${TAGGED_VERSION}" != "${WRITTEN_VERSION}" ]]; then
60
64
echo "Release Tag and Version in package.json do not match: '${TAGGED_VERSION}' vs '${WRITTEN_VERSION}'"
61
65
exit 1
62
66
fi
63
- echo ::set-env name= EXT_ISPREVIEW::0
67
+ echo " EXT_ISPREVIEW=0" >> $GITHUB_ENV
64
68
fi
65
69
66
70
- name : stamp version
You can’t perform that action at this time.
0 commit comments