Skip to content

Commit 6f650be

Browse files
author
Lasim
committed
fix(ci): always pass --increment flag in release PR workflows
1 parent 1d1223f commit 6f650be

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/backend-release-pr.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ jobs:
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.APP_INSTALLATION_TOKEN }}
6868
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
69-
TYPE_ARG: ${{ github.event.inputs.type != 'patch' && format('--increment={0}', github.event.inputs.type) || '' }}
7069
run: |
71-
# Let release-it handle version detection and incrementing properly
72-
npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
70+
# Always pass --increment explicitly to ensure version is bumped
71+
npm run release -- --increment=${{ github.event.inputs.type }} --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
7372
7473
- name: Update version.ts file
7574
working-directory: services/backend

.github/workflows/frontend-release-pr.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ jobs:
6565
env:
6666
GITHUB_TOKEN: ${{ secrets.APP_INSTALLATION_TOKEN }}
6767
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
68-
TYPE_ARG: ${{ github.event.inputs.type != 'patch' && format('--increment={0}', github.event.inputs.type) || '' }}
6968
run: |
70-
# Let release-it handle version detection and incrementing properly
71-
npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
69+
# Always pass --increment explicitly to ensure version is bumped
70+
npm run release -- --increment=${{ github.event.inputs.type }} --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
7271
7372
- name: get-npm-version
7473
id: package-version

.github/workflows/satellite-release-pr.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ jobs:
6262
env:
6363
GITHUB_TOKEN: ${{ secrets.APP_INSTALLATION_TOKEN }}
6464
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
65-
TYPE_ARG: ${{ github.event.inputs.type != 'patch' && format('--increment={0}', github.event.inputs.type) || '' }}
6665
run: |
67-
# Let release-it handle version detection and incrementing properly
68-
npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
66+
# Always pass --increment explicitly to ensure version is bumped
67+
npm run release -- --increment=${{ github.event.inputs.type }} --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
6968
7069
- name: Update version.ts file
7170
working-directory: services/satellite

0 commit comments

Comments
 (0)