Skip to content

Commit 6d84689

Browse files
committed
fix(ci): use semantic-release instead of go-semantic-release
Signed-off-by: Sphericalkat <[email protected]>
1 parent c73075c commit 6d84689

File tree

5 files changed

+6487
-9
lines changed

5 files changed

+6487
-9
lines changed

.github/workflows/release-ghr.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18-
- name: Release to github releases
19-
uses: go-semantic-release/action@v1
18+
- uses: actions/setup-node@v2
2019
with:
21-
github-token: ${{ secrets.GITHUB_TOKEN }}
22-
changelog-file: CHANGELOG.md
23-
update-file: pubspec.yaml
20+
node-version: 16
21+
registry-url: https://registry.npmjs.org/
22+
cache: npm
2423

25-
- name: Commit and push to main
26-
uses: stefanzweifel/git-auto-commit-action@v4
27-
with:
28-
commit_message: '[skip ci] Release'
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: npx semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ test/.test_coverage.dart
1414
coverage
1515
.semrel
1616
.failed_tracker
17+
node_modules/

.releaserc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
"@semantic-release/changelog",
9+
"semantic-release-dart",
10+
[
11+
"@semantic-release/git",
12+
{
13+
"assets": [
14+
"package.json",
15+
"package-lock.json",
16+
"CHANGELOG.md"
17+
],
18+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}\n\n\nskip-checks: true"
19+
}
20+
],
21+
[
22+
"@semantic-release/github",
23+
{
24+
"assets": "dist/*.tgz"
25+
}
26+
]
27+
],
28+
"repositoryUrl": "https://github.com/SphericalKat/dart-fuzzywuzzy"
29+
}

0 commit comments

Comments
 (0)