Skip to content

Commit edbd839

Browse files
authored
fix(release): use admin token if available
* fix(release): use admin token if available * fix(release): use admin token if available * chore(ci): add name to release workflows
1 parent d0c508a commit edbd839

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ permissions:
1212
jobs:
1313
lint:
1414
runs-on: ubuntu-latest
15+
name: Lint
1516
steps:
1617
- uses: actions/checkout@v4
1718
- uses: ./.github/actions/pre-commit
1819

1920
test:
2021
runs-on: ubuntu-latest
22+
name: Test
2123
steps:
2224
- uses: actions/checkout@v4
2325
- name: Set up Go
@@ -29,6 +31,7 @@ jobs:
2931

3032
release:
3133
runs-on: ubuntu-latest
34+
name: Release
3235
outputs:
3336
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
3437
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
@@ -49,7 +52,7 @@ jobs:
4952
id: semantic
5053
uses: cycjimmy/semantic-release-action@v4
5154
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
github-token: ${{ secrets.ADMIN_TOKEN || secrets.GITHUB_TOKEN }}
5356
with:
5457
dry_run: ${{ github.event_name == 'pull_request' }}
5558
- name: Run GoReleaser

.releaserc.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
"plugins": [
44
"@semantic-release/commit-analyzer",
55
"@semantic-release/release-notes-generator",
6-
"@semantic-release/changelog",
7-
"@semantic-release/github",
8-
[
9-
"@semantic-release/git",
10-
{
11-
"assets": ["CHANGELOG.md", "go.mod", "go.sum"],
12-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
13-
}
14-
]
6+
"@semantic-release/github"
157
]
168
}

CHANGELOG.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A modern terminal-based note-taking application built with [Bubble Tea](https://
2323
### Using Homebrew (macOS & Linux)
2424

2525
```bash
26-
brew tap armandsauzay/note
26+
brew tap armandsauzay/homebrew-tap
2727
brew install note
2828
```
2929

@@ -38,7 +38,7 @@ go install github.com/armandsauzay/note@latest
3838
```
3939
git clone https://github.com/armandsauzay/note.git
4040
cd note
41-
go install
41+
go install .
4242
```
4343

4444
## 🚀 Usage

0 commit comments

Comments
 (0)