Skip to content

Commit

Permalink
fix(ci): use semantic-release instead of go-semantic-release
Browse files Browse the repository at this point in the history
Signed-off-by: Sphericalkat <[email protected]>
  • Loading branch information
SphericalKat committed Jun 23, 2023
1 parent c73075c commit 6d84689
Show file tree
Hide file tree
Showing 5 changed files with 6,487 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release-ghr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ jobs:
with:
fetch-depth: 0

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

- name: Commit and push to main
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[skip ci] Release'
- name: Install dependencies
run: npm install

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ test/.test_coverage.dart
coverage
.semrel
.failed_tracker
node_modules/
29 changes: 29 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"semantic-release-dart",
[
"@semantic-release/git",
{
"assets": [
"package.json",
"package-lock.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}\n\n\nskip-checks: true"
}
],
[
"@semantic-release/github",
{
"assets": "dist/*.tgz"
}
]
],
"repositoryUrl": "https://github.com/SphericalKat/dart-fuzzywuzzy"
}
Loading

0 comments on commit 6d84689

Please sign in to comment.