diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 885975c..cd37697 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -334,6 +334,14 @@ jobs: id: version run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT" + - name: Build changelog artifacts for release + run: | + if find changes -maxdepth 1 -name '*.md' -not -name README.md -print -quit | grep -q .; then + bun run changelog:build --version "${{ steps.version.outputs.VERSION }}" + else + echo "No pending changelog fragments found." + fi + - name: Verify changelog is ready for tagged release run: bun run changelog:check --version "${{ steps.version.outputs.VERSION }}" diff --git a/package.json b/package.json index ee4830c..3aa1ac0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "subminer", - "version": "0.7.0", + "version": "0.7.1", "description": "All-in-one sentence mining overlay with AnkiConnect and dictionary integration", "packageManager": "bun@1.3.5", "main": "dist/main-entry.js", diff --git a/src/release-workflow.test.ts b/src/release-workflow.test.ts index f2eb4a5..438085b 100644 --- a/src/release-workflow.test.ts +++ b/src/release-workflow.test.ts @@ -24,6 +24,11 @@ test('release workflow verifies a committed changelog section before publish', ( assert.match(releaseWorkflow, /bun run changelog:check/); }); +test('release workflow builds changelog artifacts when fragments are pending', () => { + assert.match(releaseWorkflow, /Build changelog artifacts for release/); + assert.match(releaseWorkflow, /changelog:build --version/); +}); + test('release workflow verifies generated config examples before packaging artifacts', () => { assert.match(releaseWorkflow, /bun run verify:config-example/); });