Skip to content

Commit

Permalink
[CI] More WAPM_DEV_TOKEN check for CI (wasmerio#3735)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb authored Apr 3, 2023
1 parent 5e53ebc commit b2e7d2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration/cli/tests/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ fn wasmer_publish() -> anyhow::Result<()> {
cmd.arg(path);

if let Some(token) = wapm_dev_token {
// Special case: GitHub secrets aren't visible to outside collaborators
if token.is_empty() {
return Ok(());
}
cmd.arg("--token");
cmd.arg(token);
}
Expand Down Expand Up @@ -129,6 +133,10 @@ fn wasmer_init_publish() -> anyhow::Result<()> {
cmd.arg(path.join("randomversion"));

if let Some(token) = wapm_dev_token {
// Special case: GitHub secrets aren't visible to outside collaborators
if token.is_empty() {
return Ok(());
}
cmd.arg("--token");
cmd.arg(token);
}
Expand Down

0 comments on commit b2e7d2a

Please sign in to comment.