From 45602058f67a3c79e766e1bad76dd42453d00fb5 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Tue, 1 Oct 2024 16:41:26 -0400 Subject: [PATCH] fix: update release workflow to use latest tag --- .cz.toml | 2 +- .github/workflows/scheduled-release.yml | 1 + .github/workflows/version-bump.yml | 22 ++++++-- .goreleaser.yaml | 1 + CHANGELOG.md | 69 ------------------------- 5 files changed, 22 insertions(+), 73 deletions(-) diff --git a/.cz.toml b/.cz.toml index 3c17d9c74..b91705dab 100644 --- a/.cz.toml +++ b/.cz.toml @@ -2,6 +2,6 @@ name = "cz_conventional_commits" tag_format = "v$version" version_scheme = "semver" -version = "0.10.0" +version = "0.4.0" update_changelog_on_bump = true major_version_zero = true diff --git a/.github/workflows/scheduled-release.yml b/.github/workflows/scheduled-release.yml index 17d87d111..d74610194 100644 --- a/.github/workflows/scheduled-release.yml +++ b/.github/workflows/scheduled-release.yml @@ -36,3 +36,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} + GITHUB_PERSONAL_AUTH_TOKEN: ${{ secrets.GH_PAT_TOKEN }} diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index ef2e2df9a..1b8e85ddd 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -19,21 +19,37 @@ jobs: with: go-version: "1.22" check-latest: true - - name: Run tests run: make test + check-protos: + name: "Check Protobuf Breaking Changes" + runs-on: ubuntu-latest + continue-on-error: true + outputs: + has_breaking_changes: ${{ steps.check_breaking.outputs.has_breaking_changes }} + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-setup-action@v1 + - id: check_breaking + uses: bufbuild/buf-breaking-action@v1 + with: + against: "https://github.com/onsonr/sonr.git#branch=master" + - name: Set output + run: echo "has_breaking_changes=${{ steps.check_breaking.outcome == 'failure' }}" >> $GITHUB_OUTPUT + bump-version: - if: "!startsWith(github.event.head_commit.message, 'bump:')" + needs: [run-tests, check-protos] runs-on: ubuntu-latest name: "Bump Version" + if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }} steps: - uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} + increment: ${{ needs.check-protos.outputs.has_breaking_changes == 'true' && 'MINOR' || 'PATCH' }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 70754252c..b69a07500 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -80,6 +80,7 @@ brews: owner: onsonr name: homebrew-tap branch: master + token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}" - name: motr ids: [motr] diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d280ca94..e69343267 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,72 +1,3 @@ -## v0.10.0 (2024-10-01) - -### Feat - -- allow manual release triggers - -### Fix - -- **versioning**: revert version to 0.9.0 - -## v0.9.0 (2024-10-01) - -### Feat - -- add Input and RegistrationForm models -- add new utility classes -- add login and registration pages -- add tailwindcss utilities - -### Fix - -- **cta**: Fix typo in CTA title -- change bento section title to reflect security focus - -### Refactor - -- move home page sections to home package - -## v0.8.0 (2024-10-01) - -### Feat - -- add support for ARM64 architecture - -## v0.7.0 (2024-10-01) - -### Feat - -- add DWN resolver field -- add stats section to homepage -- implement hero section using Pkl -- add PKL schema for message formats - -### Fix - -- adjust hero image dimensions -- **Input**: Change type from to -- update hero image height in config.pkl - -### Refactor - -- rename motrd to motr -- update hero image dimensions -- move nebula configuration to static file -- rename buf-publish.yml to publish-assets.yml -- remove unused field from - -## v0.6.0 (2024-09-30) - -### Feat - -- add Homebrew tap for sonr - -## v0.5.0 (2024-09-30) - -### Feat - -- update release workflow to use latest tag - ## v0.4.0 (2024-09-30) ### Feat