From dab01a3e3950cb50b96e13027a67eb2f50523654 Mon Sep 17 00:00:00 2001 From: Luke <39926192+LukeWasTakenn@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:26:47 +0200 Subject: [PATCH] ci(release): bump package version before building --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee095e13..18ef8de7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,12 @@ jobs: - name: Install dependencies run: pnpm i --frozen-lockfile + + - name: Bump package version + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + pnpm version ${{ github.ref_name }} --git-tag-version false - name: Run build run: pnpm build @@ -54,12 +60,6 @@ jobs: cp -r ./common/data ./temp/ox_core/common/data cd ./temp && zip -r ../ox_core.zip ./ox_core - - name: Bump package version - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - pnpm version ${{ github.ref_name }} --git-tag-version false - - name: Publish npm package uses: JS-DevTools/npm-publish@v1 with: