feat: automatic Deno version bumps#2
Open
TomChv wants to merge 1 commit into
Open
Conversation
TomChv
force-pushed
the
feat/add-deno-module
branch
4 times, most recently
from
July 16, 2026 15:35
86d4927 to
a1270b3
Compare
TomChv
force-pushed
the
feat/add-automatic-deno-version-bump
branch
from
July 16, 2026 17:47
2cd575e to
864c16d
Compare
TomChv
force-pushed
the
feat/add-automatic-deno-version-bump
branch
from
July 17, 2026 15:24
864c16d to
48ea566
Compare
TomChv
marked this pull request as ready for review
July 17, 2026 15:24
Keep the module's pinned default Deno version current without manual toil:
a Dagger-native bump function plus a scheduled workflow that verifies the
result and opens a rolling PR. Implements designs/auto-version-bump.md.
- .dagger/modules/maintenance: a Maintenance module.
- latestDenoVersion resolves the newest stable release from denoland/deno's
git tags natively (git(...).tags + a small semver-max helper), so there is
no GitHub API auth/rate-limit dance.
- bumpDenoVersion(ws, version) rewrites the `version` default in deno.dang
(regex-anchored on the literal) and the illustrative versions in README.md,
returning one Changeset to preview/apply. It is deliberately NOT a
@generate: a bump is network-dependent and non-idempotent, so it stays an
explicitly-invoked function rather than firing on every `dagger generate`.
- .github/workflows/bump-deno-version.yml: weekly (and manually dispatchable)
job that applies the bump, verifies with `dagger check` (the e2e suite runs
on the default version, so one gate covers both "images published" and "still
works"), and opens a single rolling PR via peter-evans/create-pull-request.
No auto-merge; the engine pin is read from dagger-module.toml and installed
directly via the action's `version:` input. Permissions: id-token (Dagger
Cloud OIDC) + contents/pull-requests write (create-pull-request).
- Register the maintenance module in dagger.toml.
Signed-off-by: Tom Chauveau <tom@dagger.io>
TomChv
force-pushed
the
feat/add-automatic-deno-version-bump
branch
from
July 17, 2026 15:39
48ea566 to
0e125f8
Compare
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.
Keep the module's pinned default Deno version current, automatically and safely.
Implements
designs/auto-version-bump.md.What
.dagger/modules/maintenance— aMaintenanceDang module:latestDenoVersionresolves the newest stable release from denoland/deno'sgit tags natively (
git(...).tags+ a semver-max helper) — no GitHub APIauth/rate-limit dance.
bumpDenoVersion(ws, version)rewrites theversiondefault indeno.dangand the illustrative versions in
README.md, returning oneChangesettopreview/apply. Deliberately not a
@generate(a bump is network-dependentand non-idempotent, so it never fires on
dagger generate)..github/workflows/bump-deno-version.yml— weekly +workflow_dispatchjob: apply the bump → verify with
dagger check(the e2e suite runs on thedefault version, so one gate covers both "the new tag's images are published"
and "the samples still pass") → open a single rolling PR via
peter-evans/create-pull-request. No auto-merge; the engine pin is read fromdagger-module.tomland installed directly via the action'sversion:input.Verified
dagger check: 15/15 (includes the new module codegenning clean).latest-deno-version→2.9.3(current latest, so a default bump is correctly ano-op today);
bump-deno-version --version 3.0.0rewritesdeno.dang+ the threeREADME.mdexamples and leaves the unrelated2.5.0reference intact.action.yml;actionlintclean;the pinned beta CLI is installable via the action's
version:(release tarballpresent on
dl.dagger.io).Ops
DAGGER_CLOUD_TOKENrepo secret (Dagger Cloud traces).permissions:id-token: writeso Dagger Cloud can authenticate viaa GitHub OIDC token, plus
contents: writeandpull-requests: writesocreate-pull-requestcan push the bump branch and open the PR. (Apermissionsblock defaults everything unlisted to
none, so all three are declared explicitly —contentsmust staywrite, notread, or the PR step can't push.)dagger-for-github+create-pull-requestinside a runner) is only truly exercisable once merged / manually dispatched.