Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 15, 2026

Summary

Document the CRAFT_NEW_VERSION and CRAFT_OLD_VERSION environment variables in the pre-release command documentation. Using environment variables is the recommended way to handle version bumping in custom scripts as it is safer and more explicit than relying on positional arguments.

Changes

  • Updated docs/src/content/docs/configuration.md to include environment variable documentation.
  • Updated the example script to demonstrate usage of CRAFT_NEW_VERSION.
  • Verified that existing tests in src/commands/__tests__/prepare.test.ts already cover the propagation of these environment variables.

@github-actions
Copy link
Contributor

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (github) Add working-directory input to changelog-preview workflow by BYK in #717

Bug Fixes 🐛

  • (changelog) Collapse previews by default by BYK in #718

Documentation 📚

  • Document CRAFT_NEW_VERSION and CRAFT_OLD_VERSION for pre-release command by BYK in #719

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

PR Preview Action v1.8.0
Preview removed because the pull request was closed.
2026-01-15 12:29 UTC

@BYK BYK marked this pull request as ready for review January 15, 2026 12:18
@BYK BYK enabled auto-merge (squash) January 15, 2026 12:18
@BYK BYK merged commit 1bc2c3a into master Jan 15, 2026
17 checks passed
@BYK BYK deleted the docs/pre-release-env-vars branch January 15, 2026 12:28
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.

4 participants