Skip to content

Commit

Permalink
Try to fix changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jocmp committed Dec 23, 2024
1 parent cd0f9c1 commit 0f3978c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/bump-version-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: bump-version-test

on:
push:

jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.RELEASE_SSH_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
cache: "yarn"
node-version-file: ".tool-versions"
- name: Setup build dependencies
run: |
make deps
yarn install
- name: Configure Git user
run: |
git config user.name "jocmp"
git config user.email "9521010+jocmp@users.noreply.github.com"
- name: Build
run: |
make build
git add dist/
- name: Bump Version
run: |
bumpver update --${{ github.event.inputs.version }} --allow-dirty --dry
2 changes: 2 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.RELEASE_SSH_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
cache: "yarn"
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $(CHANGELOG_TMP):
echo -e "### $(BUMPVER_NEW_VERSION) ($$(date '+%b %d, %Y'))\n" >> $(CHANGELOG_TMP)
yarn run --silent changelog-maker --format=markdown >> $(CHANGELOG_TMP)
cat $(CHANGELOG) | sed 1d >> $(CHANGELOG_TMP)
cp $(CHANGELOG_TMP) $(CHANGELOG)
cat $(CHANGELOG_TMP)

$(CHANGELOG): $(CHANGELOG_TMP)

Expand Down

0 comments on commit 0f3978c

Please sign in to comment.