From ee58f734223e8364d5b2060e30047c6fef317b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCney=20Saramal=C4=B1?= Date: Wed, 13 Nov 2024 22:28:14 +0200 Subject: [PATCH] Changing the way version being written to package.json --- .github/workflows/build-and-release.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 701dd3d..e338aa3 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -23,15 +23,9 @@ jobs: - name: Install Bun uses: oven-sh/setup-bun@v2 - - name: Get version number - id: split_version - run: | - export plain_tag=$(TAG_NAME=${{ github.ref_name }}; echo "$TAG_NAME" | cut -d "v" -f 2) - echo "version=${plain_tag}" >> $GITHUB_OUTPUT - - name: Set version number run: | - sed -i 's/\"version\":.*/\"version\":\"${{ steps.split_version.outputs.version }}\"\,/' ./package.json + sed -i 's/\"version\":.*/\"version\":\"${{ github.ref_name }}\"\,/' ./package.json - name: Install Dependencies run: bun install