feat(scripts) Add the WASMER_PUBLISH_SCRIPT_IS_RUNNING env var when running cargo publish.

This commit is contained in:
Ivan Enderlin
2021-01-29 11:44:53 +01:00
parent dd5196ef27
commit 50d3b39d81

View File

@@ -102,7 +102,7 @@ def publish_crate(crate: str):
global no_dry_run
if no_dry_run:
output = subprocess.run(["cargo", "publish"])
output = subprocess.run(["cargo", "publish"], env={'WASMER_PUBLISH_SCRIPT_IS_RUNNING': '1'})
else:
print("In dry-run: not publishing crate `{}`".format(crate))