Skip to content

Commit f4de867

Browse files
authored
More fixes to bump workflow (#141)
1 parent aa09762 commit f4de867

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

.github/workflows/bump-major.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
- name: Install dependencies
1616
run: npm install
1717

18-
- name: Bump version
19-
run: npm version major
20-
21-
- name: Push changes
18+
- name: Bump and Push changes
2219
run: |
2320
git config user.name "github-actions"
2421
git config user.email "github-actions@github.com"
22+
npm version major
2523
git checkout -b release-version-$(jq -r '.version' package.json)
2624
git add package.json
2725
git commit -m "Bump version"

.github/workflows/bump-minor.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
- name: Install dependencies
1616
run: npm install
1717

18-
- name: Bump version
19-
run: npm version minor
20-
21-
- name: Push changes
18+
- name: Bump and Push changes
2219
run: |
2320
git config user.name "github-actions"
2421
git config user.email "github-actions@github.com"
22+
npm version minor
2523
git checkout -b release-version-$(jq -r '.version' package.json)
2624
git add package.json
2725
git commit -m "Bump version"

.github/workflows/bump-patch.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ jobs:
1515
- name: Install dependencies
1616
run: npm install
1717

18-
- name: Bump version
19-
run: npm version patch
20-
2118
- name: Push changes
2219
run: |
2320
git config user.name "github-actions"
2421
git config user.email "github-actions@github.com"
22+
npm version patch
2523
git checkout -b release-version-$(jq -r '.version' package.json)
2624
git add package.json
2725
git commit -m "Bump version"

0 commit comments

Comments
 (0)