Skip to content

Commit

Permalink
chore: bump version in package.json
Browse files Browse the repository at this point in the history
Signed-off-by: djamailer <[email protected]>
djamaile committed Dec 6, 2023
1 parent 7f45207 commit e084421
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@changesets/action",
"version": "2.1.0",
"version": "2.2.0",
"main": "dist/index.js",
"license": "MIT",
"devDependencies": {
7 changes: 4 additions & 3 deletions src/run.ts
Original file line number Diff line number Diff line change
@@ -223,9 +223,10 @@ export async function runVersion({
});
let changedPackages = await getChangedPackages(cwd, versionsByDirectory);

releaseVersion = releaseVersion ? releaseVersion : await fs.readJson(
const { version: versionFromPackageJson } = await fs.readJson(
path.resolve(cwd, "package.json")
);
const toUseReleaseVersion = releaseVersion || versionFromPackageJson;

const changelogEntries = await Promise.all(
changedPackages.map(async (pkg) => {
@@ -245,9 +246,9 @@ export async function runVersion({
})
);
let changelogBody = `
# Release v${releaseVersion}
# Release v${toUseReleaseVersion}
Upgrade Helper: [https://backstage.github.io/upgrade-helper/?to=${releaseVersion}](https://backstage.github.io/upgrade-helper/?to=${releaseVersion})
Upgrade Helper: [https://backstage.github.io/upgrade-helper/?to=${toUseReleaseVersion}](https://backstage.github.io/upgrade-helper/?to=${toUseReleaseVersion})
${changelogEntries
.filter((x) => x)

0 comments on commit e084421

Please sign in to comment.