Repository navigation
ci: run Windows only for public callers, release private ones on RUNNER_CI, keep 0.x minors manual - #107
Merged
Conversation
…ER_CI, keep 0.x minors manual Private repositories pay for GitHub-hosted minutes and AntelopeJS has no Windows runner of its own, so ci-node.yml schedules windows-latest only when the calling repository is public, in every tier. release-npm.yml runs on the caller's RUNNER_CI for a private or internal repository; a public one stays on ubuntu-latest for npm provenance. The Renovate preset no longer auto-merges a minor update of a 0.x version, which can break. Task: Wec9b4589-35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task: Wec9b4589-35
Summary
Why
Private AntelopeJS repositories (brevo-private, cdn, dms-antelope-cloud, mailchimp, mqtt, test-module-cloud) are blocked on their Windows legs and on Release by GitHub billing. AntelopeJS has no Windows runner of its own, and a private repository pays for GitHub-hosted minutes. On 2026-11-20, Antony decided three things:
vars.RUNNER_CI) for private and internal repositories. Public repositories stay onubuntu-latest, which npm provenance needs.What
ci-node.yml: the matrix addswindows-latestonly whengithub.event.repository.visibility == 'public', in every tier (nightly, merge queue, manual). Thewindowsinput description and the README say so. Since 2022, scheduled runs carrygithub.event.repositorytoo, so the nightly tier reads the same field.release-npm.yml(called byrelease-npm-public.ymlandrelease-npm-private.yml):runs-on: ${{ github.event.repository.visibility != 'public' && vars.RUNNER_CI || 'ubuntu-latest' }}. The job usesgh,jq,tar, git, setup-node and pnpm, all of whichnext-sync.ymlalready uses onRUNNER_CI. Thenpm-publishenvironment works on self-hosted runners. A private caller withoutRUNNER_CIstays onubuntu-latest. No other shared job that a caller reaches is still hard-coded toubuntu-latest:ci-metrics-*,link-rot,templates-fresh-cloneandrelease-train-checksrun only in this repository.renovate.json5: a rule after the auto-merge rule setsautomerge: falseformatchUpdateTypes: ['minor']withmatchCurrentVersion: '/^v?0\\./'. The regex matches the resolved current version, so it works for a pinned value (0.4.0), a range (^0.4.0, via the locked or current version) and an action tag (v0.4.0). A semver range (<1.0.0) would not work: under Renovate's defaultsemver-coercedversioning,<1.0.0coerces to a version and the rule never matches.scripts/release-train/workflows.test.tsevaluates the release job'sruns-onand the ci-nodeosmatrix over visibility, event and thewindows*inputs. Itsevaluatehelper now knowsvarsandfromJSON.scripts/module-locks/renovate-preset.test.tsgives every upgrade acurrentVersionand adds a 0.x case, using Renovate's ownapplyPackageRules.v2moves. Renovate readsrenovate.json5frommain, so the 0.x rule applies as soon as this merges.flowchart TD E[caller event] --> V{github.event.repository.visibility} V -->|public| P1[ci-node: Linux plus windows-latest in its tiers] V -->|public| P2[release: ubuntu-latest, npm provenance] V -->|private / internal| Q1[ci-node: Linux on RUNNER_CI only, no Windows] V -->|private / internal| Q2[release: RUNNER_CI, else ubuntu-latest]Related issue
Wec9b4589-35 (no Notion page). Follows ANT-3514 and ANT-3515.
Verification
Workflow tests,
node --test 'scripts/release-train/workflows.test.ts'. Before, withci-node.ymlandrelease-npm.ymlfrommain:After:
The full release train suite (
scripts/release-train/*.test.ts) gives 134 pass, 0 fail.tscis clean for both script folders, and actionlint 1.7.12 is clean on.github/workflows/*.yml.Preset test,
node --test 'scripts/module-locks/renovate-preset.test.ts'with renovate 44.247.1. Before, withrenovate.json5frommain:After:
renovate-config-validator --strict --no-global renovate.json5passes.Real Renovate run (renovate 44.257.5,
--platform=local --dry-run=lookup). The fixture repository extends the preset and holds@antelopejs/interface-core ^0.4.0,@antelopejs/interface-database 0.4.0,dotenv 8.2.0, and anantelope.config.tspin ofinterface-core 0.3.0. The run prints each branch'sautomerge. Before:After:
Checklist
Skills
no skill change
Follow-ups