Skip to content

Commit

Permalink
Checkout changelog from release branch into main (#7291)
Browse files Browse the repository at this point in the history
## About the changes
Small detail I'd like to include which is to copy the changelog from the
release branch to main. This way we'll only have major, minor and patch
logs automatically in main
  • Loading branch information
gastonfournier authored Jun 5, 2024
1 parent 92d7d9a commit 31bbfc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-new-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ jobs:
run: |
jq --arg version "${{ github.event.inputs.version }}+main" '.version=$version' package.json > package.json.tmp
mv package.json.tmp package.json
- name: checkout changelog from ${{ github.ref_name }}
run: git checkout origin/${{ github.ref_name }} -- CHANGELOG.md
- name: lint
run: |
yarn install --frozen-lockfile --ignore-scripts
yarn lint:fix
- name: push changes
run: |
git add package.json
git add package.json CHANGELOG.md
git commit -m "chore: bump version to ${{ github.event.inputs.version }}+main"
git push origin main
Expand Down

0 comments on commit 31bbfc9

Please sign in to comment.