From d442823c9887422c66722d34abab963697935cfa Mon Sep 17 00:00:00 2001 From: Yordan Atanasov Date: Tue, 24 Sep 2024 16:56:26 +0300 Subject: [PATCH] fix: Update package.json version in flow. Update npm package name from fruzhin-web to fruzhin. --- .github/workflows/tag-release.yml | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index 82b9f1678..93421b503 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -149,6 +149,12 @@ jobs: unzip ./build/libs/*.war -d dist rm -rf ./dist/META-INF ./dist/WEB-INF ./dist/index.html + - name: Update package.json version + run: | + VERSION=${{ github.event.inputs.tag_name }} + echo "Updating package.json with version: $VERSION" + sed -i -e 's/"version": ".*"/"version": "'"$VERSION"'"/' package.json + - name: Set up Node.js uses: actions/setup-node@v4 with: diff --git a/package.json b/package.json index b3acf4583..4581acfd1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "fruzhin-web", + "name": "fruzhin", "version": "1.0.0", "description": "An implementation of Fruzhin's light client usable in the web.", "main": "./dist/js/fruzhin-lib.js",