Skip to content

Commit

Permalink
Update initiate_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaarbonel authored Oct 28, 2024
1 parent f6f8161 commit f6adcc4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/initiate_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ jobs:
env:
VERSION: ${{ github.event.inputs.version }}
run: |
# Generate the changelog without creating a tag or commit
npx --yes [email protected] --release-as "$VERSION" --skip.tag --skip.commit --tag-prefix=v
git config --global user.name 'github-actions'
# Stage the new or updated CHANGELOG.md file
git add CHANGELOG.md
# Set up Git configuration
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
# Create a release branch with the version and push it
git checkout -q -b "release-$VERSION"
git commit -am "chore(release): $VERSION"
git push -q -u origin "release-$VERSION"
- name: Get changelog diff
uses: actions/github-script@v6
with:
script: |
const get_change_log_diff = require('./scripts/get_changelog_diff.js')
core.exportVariable('CHANGELOG', get_change_log_diff())
- name: Open pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -44,4 +45,4 @@ jobs:
Make sure to use squash & merge when merging!
Once this is merged, another job will kick off automatically and publish the package.
# :memo: Changelog
${{ env.CHANGELOG }}"
$(cat CHANGELOG.md)"

0 comments on commit f6adcc4

Please sign in to comment.