Skip to content

Commit

Permalink
Merge pull request #41 from customerio/feature/11921-bump-packagejson
Browse files Browse the repository at this point in the history
Update package.json version during release
  • Loading branch information
stephen-pope-customer-io authored Dec 19, 2023
2 parents 1f9cfd0 + 8d34537 commit 6179736
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/release_hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,16 @@ jobs:
run: |
git config user.name "ami-ci"
git config user.email "<>"
# Update the package.json version. Skip the git tag, we'll do that later
npm version ${{ steps.bump-semver.outputs.new_version }} --no-git-tag-version

# Commit the changed package.json file to master
git add package.json
git commit -m "Bump version to ${{ steps.bump-semver.outputs.new_version }} [skip ci]"
git push origin master

# Tag the new version
git tag ${{ steps.bump-semver.outputs.new_version }}
git push origin ${{ steps.bump-semver.outputs.new_version }}

14 changes: 13 additions & 1 deletion .github/workflows/release_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,22 @@ jobs:
run: |
git config user.name "ami-ci"
git config user.email "<>"
git pull origin develop
git checkout develop
# Update the package.json version. Skip the git tag, we'll do that later
npm version ${{ steps.bump-semver.outputs.new_version }} --no-git-tag-version

# Commit the changed package.json file to develop
git add package.json
git commit -m "Bump version to ${{ steps.bump-semver.outputs.new_version }} [skip ci]"
git push origin develop

# Merge develop into master
git checkout master
git merge develop
git push origin master

# Tag the new version
git tag ${{ steps.bump-semver.outputs.new_version }}
git push origin ${{ steps.bump-semver.outputs.new_version }}

0 comments on commit 6179736

Please sign in to comment.