Skip to content

Expand ci-env-info platform detection, add runtime/OS info#871

Open
theoephraim wants to merge 1 commit into
mainfrom
ci-env-info-more-platforms
Open

Expand ci-env-info platform detection, add runtime/OS info#871
theoephraim wants to merge 1 commit into
mainfrom
ci-env-info-more-platforms

Conversation

@theoephraim

Copy link
Copy Markdown
Member

Summary

  • Add detection for Railway, AWS Amplify, Google Cloud Run, Deno Deploy, Zeabur, and Firebase App Hosting.
  • Detect dev sandboxes (CodeSandbox, StackBlitz, GitHub Codespaces, Gitpod, Replit) and report their name, with isCI: false since they aren't a CI pipeline.
  • Add detectRuntime/detectOs for JS runtime (node/bun/deno/workerd/...) and OS detection, merged into every CiEnvInfo result and exposed as new VARLOCK_RUNTIME/VARLOCK_OS builtin variables.
  • Fix several incorrect env var names found during a std-env doc audit: GitHub Actions PR number (was reading a non-existent variable, now correctly gated on GITHUB_REF), GitLab MR number (was using the instance-wide ID instead of the IID), Netlify build URL (was double-prefixing https://), Semaphore PR number (was a Classic-only variable), Azure Pipelines PR number (now prefers the GitHub-facing number), and Bitbucket repo owner (was a deprecated variable). Also adds repo extraction for Bitrise.
  • Wire up bumpy's cascadeFrom so future @varlock/ci-env-info-only changes automatically bump varlock too, since it depends on the package directly.

Test plan

  • bun run typecheck clean across the repo
  • packages/ci-env-info tests: 42/42 passing
  • packages/varlock tests: 941/941 passing
  • bun run lint:fix clean
  • astro build for the docs site succeeds
  • bumpy status/bumpy check confirm the pending bump file covers both packages

Add detection for Railway, AWS Amplify, Google Cloud Run, Deno Deploy,
Zeabur, and Firebase App Hosting. Detect dev sandboxes (CodeSandbox,
StackBlitz, GitHub Codespaces, Gitpod, Replit) with isCI: false. Add
detectRuntime/detectOs and expose them as VARLOCK_RUNTIME/VARLOCK_OS
builtin variables.

Also fixes several incorrect env var names found during a std-env doc
audit: GitHub Actions PR number (was reading a non-existent variable),
GitLab MR number (was using the instance-wide ID instead of the IID),
Netlify build URL (double https://), Semaphore PR number (Classic-only
variable), Azure Pipelines PR number (prefers the GitHub-facing
number), and Bitbucket repo owner (deprecated variable). Adds repo
extraction for Bitrise.

Wires up bumpy's cascadeFrom so ci-env-info changes bump varlock too.
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

bumpy-frog

The changes in this PR will be included in the next version bump.

minor Minor releases

  • @varlock/ci-env-info 0.0.2 → 0.1.0
  • varlock 1.10.0 → 1.11.0

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
varlock-website 4aa1be1 Commit Preview URL

Branch Preview URL
Jul 08 2026, 07:12 AM

@pkg-pr-new

pkg-pr-new Bot commented Jul 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@varlock/ci-env-info@871
npm i https://pkg.pr.new/varlock@871

commit: 4aa1be1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant