@beastmode-develeap/beastmode 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6908,7 +6908,24 @@ function loginToGhcr(token) {
6908
6908
  timeout: 15e3,
6909
6909
  stdio: ["pipe", "pipe", "pipe"]
6910
6910
  });
6911
- return true;
6911
+ try {
6912
+ execSync(`docker manifest inspect ${GHCR_IMAGE_PREFIX}/board:latest`, {
6913
+ encoding: "utf-8",
6914
+ timeout: 15e3,
6915
+ stdio: ["pipe", "pipe", "pipe"]
6916
+ });
6917
+ return true;
6918
+ } catch {
6919
+ try {
6920
+ execSync("docker logout ghcr.io", {
6921
+ encoding: "utf-8",
6922
+ timeout: 5e3,
6923
+ stdio: ["pipe", "pipe", "pipe"]
6924
+ });
6925
+ } catch {
6926
+ }
6927
+ return false;
6928
+ }
6912
6929
  } catch {
6913
6930
  return false;
6914
6931
  }