Skip to content

Commit 70abbd1

Browse files
committed
fix: clean up test changes
1 parent 77abb8c commit 70abbd1

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stacksjs/bumpx",
33
"type": "module",
4-
"version": "0.1.66",
4+
"version": "0.2.2",
55
"private": true,
66
"description": "Automatically bump your versions.",
77
"author": "Chris Breuer <chris@stacksjs.org>",

packages/action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bumpx-action",
3-
"version": "0.1.66",
3+
"version": "0.2.2",
44
"description": "GitHub Action for bumpx version bumping tool.",
55
"author": "Stacks.js <hello@stacks.js.org>",
66
"license": "MIT",

packages/bumpx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stacksjs/bumpx",
33
"type": "module",
4-
"version": "0.1.66",
4+
"version": "0.2.2",
55
"description": "Automatically bump your versions.",
66
"author": "Chris Breuer <chris@stacksjs.org>",
77
"license": "MIT",

packages/bumpx/src/test-version.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('test change')

packages/bumpx/src/version-bump.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ export async function versionBump(options: VersionBumpOptions): Promise<void> {
760760
commitMessage = commitMessage.replace(/\{version\}/g, lastNewVersion).replace(/%s/g, lastNewVersion)
761761
}
762762

763+
if (!options.quiet) logStep(symbols.memo, 'Committing changes...', false)
763764
createGitCommit(commitMessage, false, false, effectiveCwd)
764765

765766
if (progress && lastNewVersion && _lastOldVersion) {
@@ -786,6 +787,10 @@ export async function versionBump(options: VersionBumpOptions): Promise<void> {
786787
const fromVersion = _lastOldVersion ? `v${_lastOldVersion}` : undefined
787788
const toVersion = 'HEAD' // Use HEAD since tag doesn't exist yet
788789

790+
if (!options.quiet) {
791+
const versionRange = fromVersion ? `from ${fromVersion} to ${toVersion}` : `up to ${toVersion}`
792+
logStep(symbols.memo, `Generating changelog ${versionRange} and amend to commit`, false)
793+
}
789794
await generateChangelog(effectiveCwd, fromVersion, toVersion)
790795

791796
// Amend the changelog to the existing commit
@@ -829,6 +834,7 @@ export async function versionBump(options: VersionBumpOptions): Promise<void> {
829834

830835
// Check if tag exists before attempting to create it
831836

837+
if (!options.quiet) logStep(symbols.tag, 'Creating tag...', false)
832838
createGitTag(tagName, false, finalTagMessage, effectiveCwd)
833839

834840
if (progress && lastNewVersion && _lastOldVersion) {
@@ -870,6 +876,10 @@ export async function versionBump(options: VersionBumpOptions): Promise<void> {
870876
const fromVersion = _lastOldVersion ? `v${_lastOldVersion}` : undefined
871877
const toVersion = `v${lastNewVersion}`
872878

879+
if (!options.quiet) {
880+
const versionRange = fromVersion ? `from ${fromVersion} to ${toVersion}` : `up to ${toVersion}`
881+
logStep(symbols.memo, `Generating changelog ${versionRange}`, false)
882+
}
873883
await generateChangelog(effectiveCwd, fromVersion, toVersion)
874884

875885
if (progress && _lastOldVersion) {
@@ -888,8 +898,8 @@ export async function versionBump(options: VersionBumpOptions): Promise<void> {
888898
}
889899

890900
if (push && !dryRun && inGitRepo) {
891-
if (!options.quiet)
892-
logStep(symbols.cloud, 'Pushing changes and tag...', false)
901+
if (!options.quiet) logStep(symbols.inbox, 'Pulling latest changes from remote', false)
902+
if (!options.quiet) logStep(symbols.cloud, 'Pushing changes and tag...', false)
893903
// Show remote lines always (not just verbose), git output printed by executeGit is suppressed.
894904
// We will manually emit concise lines after push to mimic git output style.
895905
const beforeBranch = getCurrentBranch(effectiveCwd)

0 commit comments

Comments
 (0)