You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo" --nodejstype-vars-file(-f) <file path> specify the file that describes the package list to be installed before build(default is nodejstypevars.sh)"
170
171
echo" --npm-token(-token) <token> npm token for uploading(specify when uploading)"
171
172
echo" --force-publisher(-fp) <version> specify publisher node major version(ex. 10/11/12)."
173
+
echo" --force-not-publisher(-np) do not allow to publish any packages."
172
174
echo""
173
175
echo" Option for packagecloud.io:"
174
176
echo" --use-packagecloudio-repo(-usepc) use packagecloud.io repository(default), exclusive -notpc option"
@@ -180,6 +182,7 @@ func_usage()
180
182
echo" ENV_NODEJS_TYPE_VARS_FILE the file for custom variables ( same as option '--nodejstype-vars-file(-f)' )"
181
183
echo" ENV_NPM_TOKEN the token for publishing to npm ( same as option '--npm-token(-token)' )"
182
184
echo" ENV_FORCE_PUBLISHER nodejs major version to publish packages ( same as option '--force-publisher(-fp)' )"
185
+
echo" ENV_FORCE_NOT_PUBLISHER do not allow to publish any packages ( same as option '--force-not-publisher(-np)' )"
183
186
echo" ENV_USE_PACKAGECLOUD_REPO use packagecloud.io repository: true/false ( same as option '--use-packagecloudio-repo(-usepc)' and '--not-use-packagecloudio-repo(-notpc)' )"
184
187
echo" ENV_PACKAGECLOUD_OWNER owner name for uploading to packagecloud.io ( same as option '--packagecloudio-owner(-pcowner)' )"
185
188
echo" ENV_PACKAGECLOUD_DOWNLOAD_REPO repository name of installing packages in packagecloud.io ( same as option '--packagecloudio-download-repo(-pcdlrepo)' )"
@@ -531,6 +534,7 @@ PRNTITLE "Start to check options and environments"
PRNERR "already set \"--packagecloudio-download-repo(-pcdlrepo)\" option."
632
643
exit 1
@@ -680,6 +691,19 @@ elif [ -n "${ENV_FORCE_PUBLISHER}" ]; then
680
691
CI_FORCE_PUBLISHER="${ENV_FORCE_PUBLISHER}"
681
692
fi
682
693
694
+
if [ "${OPT_FORCE_NOT_PUBLISHER}"-ne 0 ];then
695
+
CI_FORCE_NOT_PUBLISHER=1
696
+
elif [ -n"${ENV_FORCE_NOT_PUBLISHER}" ];then
697
+
if [ "${ENV_FORCE_NOT_PUBLISHER}"="true" ] || [ "${ENV_FORCE_NOT_PUBLISHER}"-eq 1 ];then
698
+
CI_FORCE_NOT_PUBLISHER=1
699
+
fi
700
+
fi
701
+
702
+
if [ -n"${CI_FORCE_PUBLISHER}" ] && [ "${CI_FORCE_NOT_PUBLISHER}"-ne 0 ];then
703
+
PRNERR "\"FORCE_PUBLISHER\"(ENV or --force-publisher(-fp) option) and \"FORCE_NOT_PUBLISHER\"(ENV or --force-not-publisher(-np) option) cannot be specified together."
704
+
exit 1
705
+
fi
706
+
683
707
if [ -n"${OPT_USE_PACKAGECLOUD_REPO}" ];then
684
708
if [ "${OPT_USE_PACKAGECLOUD_REPO}"-eq 1 ];then
685
709
CI_USE_PACKAGECLOUD_REPO=1
@@ -793,13 +817,15 @@ PRNTITLE "Check whether to execute processes"
0 commit comments