Skip to content

Add nr --version; bump release actions off deprecated Node 20 - #5

Merged
dawsbot merged 1 commit into
mainfrom
cli-version-and-node24-actions
Jun 18, 2026
Merged

Add nr --version; bump release actions off deprecated Node 20#5
dawsbot merged 1 commit into
mainfrom
cli-version-and-node24-actions

Conversation

@dawsbot

@dawsbot dawsbot commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Two small, independent changes.

nr --version

nr --version (and -V) print the version and work anywhere, even outside a project (handled before task detection). The string comes from CARGO_PKG_VERSION, so it tracks Cargo.toml automatically — no second place to bump at release time. On main it currently prints nr 2.0.0.

$ nr --version
nr 2.0.0

Release workflow: off the deprecated Node 20

GitHub is forcing actions/*@v4 (Node 20) onto Node 24 with a deprecation warning. Bumped the three official actions in .github/workflows/release.yml to @v5, which target Node 24 natively:

  • actions/checkout@v4@v5
  • actions/upload-artifact@v4@v5
  • actions/download-artifact@v4@v5

For the usage here (glob upload of one file per matrix target, download-all into artifacts/), the v5 majors are drop-in.

Tests

Adds a --version integration test (asserts ^nr X.Y.Z and that -V matches). Full suite: 14 unit + 24 integration tests pass; cargo fmt/clippy clean; binary unchanged in size.

🤖 Generated with Claude Code

- `nr --version` / `nr -V` print the version (from CARGO_PKG_VERSION, so
  it tracks the release automatically) and work outside a project.
- Bump actions/checkout, actions/upload-artifact and actions/download-artifact
  v4 -> v5 in the Release workflow; the v4 line runs on Node 20, which
  GitHub now forces onto Node 24 with a deprecation warning. v5 targets
  Node 24 natively.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dawsbot
dawsbot merged commit 3f7e4a5 into main Jun 18, 2026
@dawsbot
dawsbot deleted the cli-version-and-node24-actions branch June 18, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant