From b0230889e925e453e1dad2a5a8786c6500587683 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Sat, 28 Jun 2025 07:26:15 +0200 Subject: [PATCH 1/2] chore: fix version bump script output --- scripts/bump-version.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/bump-version.ts b/scripts/bump-version.ts index 6538df32..ac42655d 100644 --- a/scripts/bump-version.ts +++ b/scripts/bump-version.ts @@ -48,7 +48,11 @@ for (const file of packageFiles) { // do a string replace from oldVersion to newVersion const newContent = content.replace(`"version": "${oldVersion}"`, `"version": "${newVersion}"`); fs.writeFileSync(file, newContent); + console.log(`Updated ${file}: ${oldVersion} -> ${newVersion}`); } } -console.log(`new_version=${newVersion}`); +if (process.env.GITHUB_OUTPUT) { + // CI output + fs.appendFileSync(process.env.GITHUB_OUTPUT, `new_version=${newVersion}\n`); +} From e0d232ff94abf9b440b52e1a9cc7a8eec3a23221 Mon Sep 17 00:00:00 2001 From: ymc9 <104139426+ymc9@users.noreply.github.com> Date: Sat, 28 Jun 2025 07:32:33 +0200 Subject: [PATCH 2/2] update CI script --- .github/workflows/bump-version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 88b371c1..d86b2ca6 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -10,6 +10,7 @@ permissions: jobs: bump-version: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/dev' steps: - name: Checkout