Skip to content

Commit dab01a3

Browse files
committed
ci(release): bump package version before building
1 parent 244ce99 commit dab01a3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040

4141
- name: Install dependencies
4242
run: pnpm i --frozen-lockfile
43+
44+
- name: Bump package version
45+
run: |
46+
git config --global user.name "GitHub Actions"
47+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
48+
pnpm version ${{ github.ref_name }} --git-tag-version false
4349
4450
- name: Run build
4551
run: pnpm build
@@ -54,12 +60,6 @@ jobs:
5460
cp -r ./common/data ./temp/ox_core/common/data
5561
cd ./temp && zip -r ../ox_core.zip ./ox_core
5662
57-
- name: Bump package version
58-
run: |
59-
git config --global user.name "GitHub Actions"
60-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
61-
pnpm version ${{ github.ref_name }} --git-tag-version false
62-
6363
- name: Publish npm package
6464
uses: JS-DevTools/npm-publish@v1
6565
with:

0 commit comments

Comments
 (0)