From a9c5970ee89f12e994df03bb0bfb78558b02a58f Mon Sep 17 00:00:00 2001 From: shimataro Date: Wed, 11 Oct 2023 22:58:33 +0900 Subject: [PATCH] version 2.6.0 (#257) --- CHANGELOG.md | 5 ++++- package-lock.json | 4 ++-- package.json | 2 +- scripts/prepare-release.sh | 22 +++++++++++----------- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a7e1cc..9c0f94a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [2.6.0] - 2023-10-11 + ### Others * back up and restore files when exist (thanks [@bambeusz](https://github.com/bambeusz)) @@ -191,7 +193,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * First release. -[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v2.5.1...HEAD +[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v2.6.0...HEAD +[2.6.0]: https://github.com/shimataro/ssh-key-action/compare/v2.5.1...v2.6.0 [2.5.1]: https://github.com/shimataro/ssh-key-action/compare/v2.5.0...v2.5.1 [2.5.0]: https://github.com/shimataro/ssh-key-action/compare/v2.4.0...v2.5.0 [2.4.0]: https://github.com/shimataro/ssh-key-action/compare/v2.3.1...v2.4.0 diff --git a/package-lock.json b/package-lock.json index a30f1a6..93f5a31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "install-ssh-key", - "version": "2.5.1", + "version": "2.6.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "install-ssh-key", - "version": "2.5.1", + "version": "2.6.0", "license": "MIT", "devDependencies": { "@actions/core": "1.10.1", diff --git a/package.json b/package.json index 8d5f07d..fc14523 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "install-ssh-key", - "version": "2.5.1", + "version": "2.6.0", "private": true, "description": "Install SSH key in .ssh", "main": "./dist/main.js", diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh index f8c11e8..d588f74 100755 --- a/scripts/prepare-release.sh +++ b/scripts/prepare-release.sh @@ -13,16 +13,16 @@ URL_REPOSITORY="${URL_PRODUCT}.git" URL_COMPARE="${URL_PRODUCT}/compare" URL_RELEASE="${URL_PRODUCT}/releases/new" -COLOR_ERROR="\e[1;41m" -COLOR_SECTION="\e[1;34m" -COLOR_COMMAND_NAME="\e[1;34m" -COLOR_OPTION="\e[4;36m" -COLOR_COMMAND="\e[4m" -COLOR_FILE="\e[1;34m" -COLOR_BRANCH="\e[1;31m" -COLOR_INPUT="\e[1;31m" -COLOR_SELECT="\e[1;32m" -COLOR_RESET="\e[m" +COLOR_ERROR="\033[1;41m" +COLOR_SECTION="\033[1;34m" +COLOR_COMMAND_NAME="\033[1;34m" +COLOR_OPTION="\033[4;36m" +COLOR_COMMAND="\033[4m" +COLOR_FILE="\033[1;34m" +COLOR_BRANCH="\033[1;31m" +COLOR_INPUT="\033[1;31m" +COLOR_SELECT="\033[1;32m" +COLOR_RESET="\033[m" function main() { cd $(dirname ${0})/.. @@ -103,7 +103,7 @@ function update_changelog() { local KEYWORD="Unreleased" sed -i".bak" -r \ - -e "s/^((##\s+)\[${KEYWORD}\])$/\1\n\n\2[${VERSION}] - ${DATE}/" \ + -e "s/^((##[[:space:]]+)\[${KEYWORD}\])$/\1\n\n\2[${VERSION}] - ${DATE}/" \ -e "s/^(\[${KEYWORD}\](.*))(v.*)\.\.\.HEAD$/\1v${VERSION}...HEAD\n[${VERSION}]\2\3...v${VERSION}/" \ CHANGELOG.md }