From c8e543b3a7a8af2a95b55f9a8eeb35403b327b5a Mon Sep 17 00:00:00 2001 From: bnimit <49595883+bnimit@users.noreply.github.com> Date: Fri, 30 Jan 2026 08:51:15 +0000 Subject: [PATCH 1/2] chore: bump version to v2.3.1 --- CHANGELOG.md | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06c8296..4dd4208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,27 @@ # Changelog +## [v2.3.1] - 2026-01-30 + +### 🔧 Chore + +- chore: update dependencies and GitHub Actions to latest versions (456df59) + + + +## [v2.3.1] - 2026-01-30 + +### 🔧 Chore + +- chore: update dependencies and GitHub Actions to latest versions (456df59) + All notable changes to this project will be documented in this file. +## [v2.3.1] - 2026-01-30 + +### 🔧 Chore + +- chore: update dependencies and GitHub Actions to latest versions (456df59) + + ## [v2.3.0] - 2025-12-23 diff --git a/package.json b/package.json index 55c1eeb..f290bf4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-align", - "version": "2.3.0", + "version": "2.3.1", "author": "KaWaite", "license": "MIT", "main": "./dist/react-align.umd.js", From 0d4c90e21cb4c394c6e238a7b84b24cee649bf08 Mon Sep 17 00:00:00 2001 From: Nimit Bhandari Date: Fri, 30 Jan 2026 14:30:48 +0530 Subject: [PATCH 2/2] Fix changelog and release duplication issue --- .github/workflows/release.yml | 20 +++++++++----------- CHANGELOG.md | 17 +---------------- 2 files changed, 10 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 761985f..31e6c65 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -135,20 +135,18 @@ jobs: echo "Version v${{ steps.bump_version.outputs.new_version }} already exists in CHANGELOG.md, skipping update" else # Prepare new entry - cat > /tmp/new_entry.md < /tmp/new_entry.md + echo "" >> /tmp/new_entry.md cat /tmp/changelog.md | tail -n +3 >> /tmp/new_entry.md echo "" >> /tmp/new_entry.md - # Insert after the header - sed -i '1,/^All notable/r /tmp/new_entry.md' CHANGELOG.md || { - # If sed fails (no header found), just prepend - cat /tmp/new_entry.md CHANGELOG.md > /tmp/new_changelog.md - mv /tmp/new_changelog.md CHANGELOG.md - } + # Split CHANGELOG into header and content + awk '/^All notable changes/{print; print ""; exit}' CHANGELOG.md > /tmp/header.md + awk '/^All notable changes/{found=1; next} found' CHANGELOG.md > /tmp/content.md + + # Rebuild CHANGELOG with new entry inserted + cat /tmp/header.md /tmp/new_entry.md /tmp/content.md > CHANGELOG.md + echo "Added v${{ steps.bump_version.outputs.new_version }} to CHANGELOG.md" fi diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dd4208..fb9ee86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,28 +1,13 @@ # Changelog -## [v2.3.1] - 2026-01-30 - -### 🔧 Chore - -- chore: update dependencies and GitHub Actions to latest versions (456df59) - - - -## [v2.3.1] - 2026-01-30 - -### 🔧 Chore - -- chore: update dependencies and GitHub Actions to latest versions (456df59) - All notable changes to this project will be documented in this file. + ## [v2.3.1] - 2026-01-30 ### 🔧 Chore - chore: update dependencies and GitHub Actions to latest versions (456df59) - - ## [v2.3.0] - 2025-12-23 ### ✨ Features