File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -95,17 +95,14 @@ main() {
95
95
popd
96
96
fi
97
97
98
- # If we're publishing to production we need to make sure
99
- # we haven't already published the version. This is because
100
- # npm view won't exit with non-zero so we have to check the
101
- # output.
102
- if [[ ENVIRONMENT == " production" ]]; then
103
- local hasVersion
104
- hasVersion=$( npm view " code-server@$VERSION " version)
105
- if [[ $hasVersion == " $VERSION " ]]; then
106
- echo " $VERSION is already published"
107
- return
108
- fi
98
+ # We need to make sure we haven't already published the version.
99
+ # This is because npm view won't exit with non-zero so we have
100
+ # to check the output.
101
+ local hasVersion
102
+ hasVersion=$( npm view " code-server@$VERSION " version)
103
+ if [[ $hasVersion == " $VERSION " ]]; then
104
+ echo " $VERSION is already published"
105
+ return
109
106
fi
110
107
111
108
yarn publish --non-interactive release --tag " $NPM_TAG "
You can’t perform that action at this time.
0 commit comments