Skip to content

Commit e8bb1bd

Browse files
committed
wip
1 parent 983f597 commit e8bb1bd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

actions/bump-all-packages/dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/bump-all-packages/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ export async function run() {
7676
}
7777

7878
const changesetContent = packageNames
79-
.map(name => `"${name}": major`)
79+
.map(name => `"${name}": ${changeType}`)
8080
.join('\n');
8181

8282
const changesetFilePath = `${changesetDir}/${changesetId}.md`;
83-
const fileContent = `---\n${changesetContent}\n---\n\nBump packages major version\n`;
83+
const fileContent = `---\n${changesetContent}\n---\n\nBump packages ${changeType} version\n`;
8484

8585
fs.writeFileSync(changesetFilePath, fileContent);
8686
core.info(`Created changeset file: ${changesetFilePath}`);
8787

88-
core.info('Successfully bumped versions using changesets with major strategy');
88+
core.info(`Successfully bumped versions using changesets with ${changeType} strategy`);
8989
} else {
9090
core.warning('No packages found in target directories');
9191
}
@@ -110,7 +110,7 @@ export async function run() {
110110
}
111111
});
112112

113-
core.info('✅ Successfully completed major version bump process with changesets');
113+
core.info(`✅ Successfully completed ${changeType} version bump process with changesets`);
114114
} catch (error) {
115115
if (error instanceof Error) {
116116
core.setFailed(error.message);

0 commit comments

Comments
 (0)