From 33db3936c2068928f9fcc71b524260af9dbcd9b8 Mon Sep 17 00:00:00 2001 From: ZeWaka Date: Wed, 7 Aug 2024 22:47:54 -0700 Subject: [PATCH] set package.json version properly --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d1532ac..c836e852 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,12 @@ jobs: - name: Lint project run: pnpm lint + # Updates the version in the package.json + - name: Set package version + uses: ZeWaka/set-node-package-version@v1 + with: + version: ${{ github.ref_name }} + - name: Build project run: pnpm build @@ -38,7 +44,7 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git add . - git commit -m "Build for Release" || echo "No changes to commit" + git commit -m "Build & Release ${{ github.ref_name }}" || echo "No changes to commit" - name: Push changes uses: ad-m/github-push-action@master