Skip to content

Commit

Permalink
ci(release): bump package version before building
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Oct 25, 2024
1 parent 244ce99 commit dab01a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit dab01a3

Please sign in to comment.