diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 81da210f..dc1f487b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -85,23 +85,25 @@ jobs: echo "NEW_VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT" echo "GIT_TAG=${{ inputs.package }}-v$NEW_VERSION" >> "$GITHUB_OUTPUT" - - name: Generate changelog - run: | - chmod +x ../../.github/scripts/generate-changelog.sh - ./../../.github/scripts/generate-changelog.sh ${{ inputs.package }} ${{ secrets.VA_MOBILE_ROBOT_GITHUB_PAT }} - name: Commit changes and tag run: | git config --global user.name 'VA Automation Bot' git config --global user.email 'va-mobileapp@adhocteam.us' git pull git add package.json - git add CHANGELOG.md git commit -m 'Version bump: ${{ steps.bump-version.outputs.GIT_TAG }}' git push TAG=${{ steps.bump-version.outputs.GIT_TAG }} echo $TAG git tag -a $TAG -m $TAG git push origin $TAG + - name: Generate changelog + run: | + chmod +x ../../.github/scripts/generate-changelog.sh + ./../../.github/scripts/generate-changelog.sh ${{ inputs.package }} ${{ secrets.VA_MOBILE_ROBOT_GITHUB_PAT }} + git add CHANGELOG.md + git commit -m 'Changelog for ${{ steps.bump-version.outputs.GIT_TAG }}' + git push - name: Post to a Slack channel id: slack uses: slackapi/slack-github-action@v1.24.0