mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-23 07:37:24 +01:00
chore: enhance version bump process with base version check
This commit is contained in:
parent
274e992799
commit
71ad41b4fc
2 changed files with 42 additions and 2 deletions
12
.github/workflows/bump-version.yml
vendored
12
.github/workflows/bump-version.yml
vendored
|
|
@ -42,8 +42,18 @@ jobs:
|
|||
echo "type=patch" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Extract base version (master before this PR merged)
|
||||
id: base
|
||||
run: |
|
||||
BASE=$(git show HEAD~1:public/versioning.js \
|
||||
| grep -oP 'const VERSION = "\K[\d.]+')
|
||||
echo "version=$BASE" >> "$GITHUB_OUTPUT"
|
||||
echo "Base version on master before merge: $BASE"
|
||||
|
||||
- name: Run version bump script
|
||||
run: node scripts/bump-version.js ${{ steps.bump.outputs.type }}
|
||||
run: |
|
||||
node scripts/bump-version.js ${{ steps.bump.outputs.type }} \
|
||||
--base-version ${{ steps.base.outputs.version }}
|
||||
|
||||
- name: Commit and push bump
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue