From cf4305aba56ce0853cdb61fee00335efa8c493cf Mon Sep 17 00:00:00 2001 From: Armand Sauzay <35524799+armand-sauzay@users.noreply.github.com> Date: Sat, 7 Dec 2024 23:33:59 +0000 Subject: [PATCH 1/3] fix(release): use admin token if available --- .github/workflows/release.yaml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9da15fe..626a739 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -49,7 +49,7 @@ jobs: id: semantic uses: cycjimmy/semantic-release-action@v4 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.ADMIN_TOKEN || secrets.GITHUB_TOKEN }} with: dry_run: ${{ github.event_name == 'pull_request' }} - name: Run GoReleaser diff --git a/README.md b/README.md index a2a1660..c919b86 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ A modern terminal-based note-taking application built with [Bubble Tea](https:// ### Using Homebrew (macOS & Linux) ```bash -brew tap armandsauzay/note +brew tap armandsauzay/homebrew-tap brew install note ``` @@ -38,7 +38,7 @@ go install github.com/armandsauzay/note@latest ``` git clone https://github.com/armandsauzay/note.git cd note -go install +go install . ``` ## 🚀 Usage From 43490b4d5ae9f879a631172a076f364392493c64 Mon Sep 17 00:00:00 2001 From: Armand Sauzay <35524799+armand-sauzay@users.noreply.github.com> Date: Sat, 7 Dec 2024 23:35:33 +0000 Subject: [PATCH 2/3] fix(release): use admin token if available --- .releaserc.json | 10 +--------- CHANGELOG.md | 6 ------ 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/.releaserc.json b/.releaserc.json index 1e7d38c..7bf05ec 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -3,14 +3,6 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - "@semantic-release/github", - [ - "@semantic-release/git", - { - "assets": ["CHANGELOG.md", "go.mod", "go.sum"], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" - } - ] + "@semantic-release/github" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 06bab05..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,6 +0,0 @@ -# [0.1.0](https://github.com/armand-sauzay/note/compare/v0.0.1...v0.1.0) (2024-12-07) - - -### Features - -* initial repository setup ([#1](https://github.com/armand-sauzay/note/issues/1)) ([7083f94](https://github.com/armand-sauzay/note/commit/7083f948bbb263dc7a0ea2d20b61c8c276718a2d)) From bf85fa39e38b20ebf6abe5806d0889b47fb3f631 Mon Sep 17 00:00:00 2001 From: Armand Sauzay <35524799+armand-sauzay@users.noreply.github.com> Date: Sat, 7 Dec 2024 23:38:03 +0000 Subject: [PATCH 3/3] chore(ci): add name to release workflows --- .github/workflows/release.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 626a739..91901a8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,12 +12,14 @@ permissions: jobs: lint: runs-on: ubuntu-latest + name: Lint steps: - uses: actions/checkout@v4 - uses: ./.github/actions/pre-commit test: runs-on: ubuntu-latest + name: Test steps: - uses: actions/checkout@v4 - name: Set up Go @@ -29,6 +31,7 @@ jobs: release: runs-on: ubuntu-latest + name: Release outputs: new_release_version: ${{ steps.semantic.outputs.new_release_version }} new_release_published: ${{ steps.semantic.outputs.new_release_published }}