Skip to content

Commit

Permalink
Merge pull request #19 from JairajJangle/develop
Browse files Browse the repository at this point in the history
chore: remove unnecessary package json add in github action
  • Loading branch information
JairajJangle committed May 5, 2024
2 parents 0d039c0 + da54f12 commit d8170f7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,19 @@ jobs:

- name: Generate changelog
run: yarn generate-changelog

- name: Use existing version, create tag and commit changelog

- name: Commit changes if any
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add CHANGELOG.md
git commit -m "Update CHANGELOG.md for version ${{ env.VERSION }} [skip ci]" || echo "No changes to commit"
- name: Use existing version, create tag
id: versioning
run: |
git fetch --all
git pull --rebase origin ${{ github.ref_name }}
VERSION=$(node -p "require('./package.json').version")
echo "VERSION=$VERSION" >> $GITHUB_ENV
git add CHANGELOG.md package.json
git commit -m "Update CHANGELOG.md for version $VERSION [skip ci]" || echo "No changes to commit"
git tag -a "v$VERSION" -m "Release v$VERSION"
git push --follow-tags
env:
Expand Down

0 comments on commit d8170f7

Please sign in to comment.