1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Checkout changelog from release branch into main (#7291)

## 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
This commit is contained in:
Gastón Fournier 2024-06-05 15:47:46 +02:00 committed by GitHub
parent 92d7d9aafe
commit 31bbfc974a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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