From 6bce6183d4f2f5b039db49ddfe692bf7f0c87b19 Mon Sep 17 00:00:00 2001 From: Peter Kaufman Date: Fri, 22 Mar 2024 13:23:13 -0400 Subject: [PATCH 1/2] fixed issue with quotes being included in the release script --- scripts/create-release | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/create-release b/scripts/create-release index 86e5bfb9..37c21393 100755 --- a/scripts/create-release +++ b/scripts/create-release @@ -10,6 +10,8 @@ if [ -z "$VERSION" ]; then exit 1 fi +VERSION="${VERSION//\"/}" + echo "Creating tag $VERSION" git tag -a "$VERSION" -m "$VERSION" && git push --tags upstream From cf524c9bb01b27bca22a182bf14c49276c5d2b5e Mon Sep 17 00:00:00 2001 From: Peter Kaufman Date: Fri, 22 Mar 2024 13:30:40 -0400 Subject: [PATCH 2/2] Auto-release beta 1.23.3-rc-1 --- manifest-beta.json | 2 +- package.json | 2 +- scripts/pre-beta-release | 3 +-- versions.json | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/manifest-beta.json b/manifest-beta.json index f0922c8f..10975220 100644 --- a/manifest-beta.json +++ b/manifest-beta.json @@ -1,7 +1,7 @@ { "id": "obsidian-linter", "name": "Linter", - "version": "1.23.3", + "version": "1.23.3-rc-1", "minAppVersion": "1.4.16", "description": "Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.", "author": "Victor Tao", diff --git a/package.json b/package.json index 53c8a7ca..eca569a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-linter", - "version": "1.23.3", + "version": "1.23.3-rc-1", "description": "Enforces consistent markdown styling for Obsidian (https://obsidian.md). It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.", "main": "main.js", "scripts": { diff --git a/scripts/pre-beta-release b/scripts/pre-beta-release index efa57084..016db562 100755 --- a/scripts/pre-beta-release +++ b/scripts/pre-beta-release @@ -14,12 +14,11 @@ echo "Releasing beta version '${NEW_VERSION}'" # Delete old files if they exist rm -f package.tmp.json rm -f manifest-beta.tmp.json -rm -f versions.tmp.json # Rewrite versions in relevant files. jq ".version=\"${NEW_VERSION}\"" package.json > package.tmp.json && mv package.tmp.json package.json jq ".version=\"${NEW_VERSION}\"" manifest-beta.json > manifest-beta.tmp.json && mv manifest-beta.tmp.json manifest-beta.json -jq ". + {\"${NEW_VERSION}\": \"1.5.8\"}" versions.json > versions.tmp.json && mv versions.tmp.json versions.json +# jq ". + {\"${NEW_VERSION}\": \"1.5.8\"}" versions.json > versions.tmp.json && mv versions.tmp.json versions.json # Create commit & commit. git commit -a -m "Auto-release beta ${NEW_VERSION}" diff --git a/versions.json b/versions.json index 120371a5..5777bc7d 100644 --- a/versions.json +++ b/versions.json @@ -61,6 +61,5 @@ "1.22.0": "1.4.16", "1.23.0": "1.4.16", "1.23.1": "1.4.16", - "1.23.2": "1.4.16", - "1.23.3": "1.5.8" + "1.23.2": "1.4.16" }