Skip to content

Commit

Permalink
always install a new version of fluentci-engine and fluentci-studio o…
Browse files Browse the repository at this point in the history
…n upgrade
  • Loading branch information
tsirysndr committed Jun 29, 2024
1 parent 9f3654a commit 44159b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fluentci studio
fluentci --help

Usage: fluentci [pipeline] [jobs...]
Version: 0.15.0
Version: 0.15.1

Description:

Expand Down
6 changes: 6 additions & 0 deletions src/cmd/upgrade.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { VERSION } from "../consts.ts";
import { gray, green, semver, yellow } from "../../deps.ts";
import { setupFluentCIStudio, setupFluentCIengine } from "../utils.ts";

/**
* Upgrades FluentCI by installing the latest version from the Deno registry.
Expand All @@ -18,6 +19,11 @@ async function upgrade() {
return;
}

Deno.env.set("FORCE_FLUENTCI_STUDIO_INSTALL", "1");
Deno.env.set("FORCE_FLUENTCI_ENGINE_INSTALL", "1");
await setupFluentCIengine();
await setupFluentCIStudio();

const command = new Deno.Command("deno", {
args: [
"install",
Expand Down
2 changes: 1 addition & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dir } from "../deps.ts";
export const VERSION = "0.15.0";
export const VERSION = "0.15.1";

export const BASE_URL = "https://api.fluentci.io/v1";

Expand Down

0 comments on commit 44159b1

Please sign in to comment.