refactor: read the image version from a package.json #5

Merged
crapougnax merged 1 commit from refactor/4-image-version-package-json into develop 2026-11-14 12:14:17 +00:00
Member

Closes #4

Change

  • images/ci-base/package.json (name, version, private, description, license) replaces images/ci-base/VERSION.
  • actions/build-image reads the version field, with node or with jq when node is absent.
  • README (English and French), recipe comment and AGENTS.md follow.

The image does not change: ci-base stays at 1.0.0, so a fork publishes nothing new from main.

Verified locally

  • Build and smoke test with the version read from package.json.
  • Explicit failure on a version that is not X.Y.Z and on invalid JSON.

Note for forks

No setting changes. An image added later needs its own package.json.

🤖 Generated with Claude Code

Closes #4 ## Change - `images/ci-base/package.json` (`name`, `version`, `private`, `description`, `license`) replaces `images/ci-base/VERSION`. - `actions/build-image` reads the `version` field, with `node` or with `jq` when `node` is absent. - README (English and French), recipe comment and `AGENTS.md` follow. The image does not change: `ci-base` stays at 1.0.0, so a fork publishes nothing new from `main`. ## Verified locally - Build and smoke test with the version read from `package.json`. - Explicit failure on a version that is not `X.Y.Z` and on invalid JSON. ## Note for forks No setting changes. An image added later needs its own `package.json`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
refactor: read the image version from a package.json (#4)
All checks were successful
CI / Build and test ci-base (pull_request) Successful in 52s
44b99c4980
Each image now carries a package.json in place of the bare VERSION file:
the version sits where it is expected and bumped everywhere else.
build-image reads the version field with node, or jq when node is
absent, and fails with an explicit message when the file is missing,
malformed or holds a version that is not X.Y.Z.

The image does not change: ci-base stays at 1.0.0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
crapougnax merged commit 98a7f739d6 into develop 2026-11-14 12:14:17 +00:00
crapougnax deleted branch refactor/4-image-version-package-json 2026-11-14 12:14:17 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tycho/forge-ci!5
No description provided.