diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4bc7268..faeedd8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -170,7 +170,7 @@ jobs: let insertAt = lines.findIndex((l, i) => i > 0 && l.startsWith("## ")); if (insertAt === -1) insertAt = lines.length; - const entry = `## [${NEW}] – ${DATE}\n\n### Changed\n\n${DESCRIPTION} (PR #${PR})\n\n[${NEW}]: https://github.com/${REPO}/releases/tag/v${NEW}\n`; + const entry = `## [${NEW}] – ${DATE}\n\n### Changed\n\n${DESCRIPTION} (PR #${PR})\n\n[${NEW}]: https://github.com/${REPO}/releases/tag/${NEW}\n`; lines.splice(insertAt, 0, entry); fs.writeFileSync("CHANGELOG.md", lines.join("\n")); ' @@ -181,7 +181,7 @@ jobs: git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add package.json manifest.json versions.json CHANGELOG.md - git commit -m "chore: release v${{ steps.version.outputs.new_version }} [skip ci]" + git commit -m "chore: release ${{ steps.version.outputs.new_version }} [skip ci]" git push - name: Build release artifacts @@ -195,8 +195,8 @@ jobs: NEW: ${{ steps.version.outputs.new_version }} DESCRIPTION: ${{ steps.changelog_entry.outputs.description }} run: | - gh release create "v${NEW}" \ - --title "v${NEW}" \ + gh release create "${NEW}" \ + --title "${NEW}" \ --notes "${DESCRIPTION}" \ main.js manifest.json diff --git a/CHANGELOG.md b/CHANGELOG.md index ef07ac0..eaad5a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), Fix release workflow bump detection: correct broken regex (`\[xX\]` → `\[[xX]\]`), use temp file + `awk` markers for reliable multiline PR body handling, replace `echo | grep` with here-strings, and fall back to full-body scan when markers are missing. (PR #6) -[1.0.1]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/v1.0.1 +[1.0.1]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/1.0.1 ## [1.0.0] – 2024-01-01 @@ -30,4 +30,4 @@ Fix release workflow bump detection: correct broken regex (`\[xX\]` → `\[[xX]\ - Settings UI for default pad character, line-number separator, pad toggle, GUID casing, case-sensitive filtering, filter history, and text slots. - Full multi-selection support: all commands operate on every active editor selection independently. -[1.0.0]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/v1.0.0 +[1.0.0]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/1.0.0