From 614f3969da8d03b3f6b92e6ffe723fd12d416a0c Mon Sep 17 00:00:00 2001 From: Ignacio Aldama Vicente Date: Sun, 2 Aug 2026 12:32:33 +0200 Subject: [PATCH 1/2] fix: prevent init hang by skipping bvm update-check and PATH edit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The init action ran `bvm install --use-system-node` without `--skip-update-check` or `--skip-update-path`. After printing "Setup complete", bvm performs a network call to check for a newer bvm (getBvmRemoteVersion) and edits shell profile/PATH files. On runners with restricted network egress the update check blocks indefinitely, so the step hangs after "Setup complete" and never reaches `bit install` — even with skip-deps-install: true. Pass both flags to bvm install. Neither is needed in CI: the action sets PATH itself, and update notifications are irrelevant in a pipeline. Also bump the pinned Node from 22.14 to 22.22 to satisfy Bit's current minimum ("Bit CLI requires at least Node.js 22.22.0"), which the old pin triggered as a warning on every run. --- action.yml | 2 +- dist/index.js | 10 +++++++++- scripts/init.ts | 10 +++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index b4303c0..7df33b5 100644 --- a/action.yml +++ b/action.yml @@ -74,7 +74,7 @@ runs: if: env.IS_CONTAINER == 'false' uses: actions/setup-node@v4 with: - node-version: '22.14' + node-version: '22.22' - name: Install pnpm if: inputs.cache == 'true' diff --git a/dist/index.js b/dist/index.js index aec4379..f2fd872 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27720,7 +27720,15 @@ const run = (wsdir, skipDepsInstall, skipBitInstall, args) => __awaiter(void 0, core.warning(`WARNING - Bit version ${installedBitVersion} is already installed, however workspace requires the version ${bitEngineVersion}. Installing version ${bitEngineVersion}. This may increase the overall build time.`); } yield (0, exec_1.exec)("npm", ["i", "-g", "@teambit/bvm"]); - yield (0, exec_1.exec)("bvm", ["install", bitEngineVersion, "--use-system-node"]); + // Skip bvm's post-install update check (a network call that hangs on egress-restricted + // runners) and its shell-profile PATH edit (a no-op in CI, where profiles aren't sourced). + yield (0, exec_1.exec)("bvm", [ + "install", + bitEngineVersion, + "--use-system-node", + "--skip-update-check", + "--skip-update-path", + ]); } // sets path for current step process.env.PATH = `${process.env.HOME}/bin:` + process.env.PATH; diff --git a/scripts/init.ts b/scripts/init.ts index ee13947..de17a5e 100644 --- a/scripts/init.ts +++ b/scripts/init.ts @@ -74,7 +74,15 @@ const run = async ( ); } await exec("npm", ["i", "-g", "@teambit/bvm"]); - await exec("bvm", ["install", bitEngineVersion, "--use-system-node"]); + // Skip bvm's post-install update check (a network call that hangs on egress-restricted + // runners) and its shell-profile PATH edit (a no-op in CI, where profiles aren't sourced). + await exec("bvm", [ + "install", + bitEngineVersion, + "--use-system-node", + "--skip-update-check", + "--skip-update-path", + ]); } // sets path for current step From b2b4d7bebf406e8dd700e74e80783f0b409cd8ef Mon Sep 17 00:00:00 2001 From: Ignacio Aldama Vicente Date: Sun, 2 Aug 2026 13:39:25 +0200 Subject: [PATCH 2/2] release: v3.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1673ac6..1a4265e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-action", - "version": "3.1.0", + "version": "3.1.1", "description": "", "main": "dist/index.js", "scripts": {