From 62a886b13b819527c999763c342cebb6722206e7 Mon Sep 17 00:00:00 2001 From: Martossy Alex Date: Sun, 7 Jul 2024 13:09:26 +0200 Subject: [PATCH] Fix script --- build/version.sh | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/version.sh b/build/version.sh index 580f8e6..cd84f92 100644 --- a/build/version.sh +++ b/build/version.sh @@ -5,7 +5,7 @@ CSPROJ_PATH="$2" PACKAGE_NAME="$3" set -xe -yarn run version +yarn run changeset:version VERSION=$(jq -r '.version' "$PACKAGE_JSON_PATH") sed -i "s#.*#$VERSION#" "$CSPROJ_PATH" AVAILABLE_VERSIONS=$(curl -s "https://api.nuget.org/v3-flatcontainer/$PACKAGE_NAME/index.json" | jq -r '.versions[]') diff --git a/package.json b/package.json index ce1b7ff..3b9f69c 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "private": true, "scripts": { "changeset": "changeset", + "changeset:version": "changeset version", "version": "bash ./build/version.sh" }, "workspaces": [