Skip to content

Commit

Permalink
chore: setup semantic release, #1
Browse files Browse the repository at this point in the history
  • Loading branch information
luifr10 committed Mar 5, 2024
1 parent 9054f0c commit 855b31d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@ on:
branches: [ "main" ]

env:
NODE_VERSION: 18.14.0
NODE_VERSION: 20.8.1
FLUTTER_VERSION: '3.16.9'

jobs:
analyse:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: $FLUTTER_VERSION
flutter-version: ${{env.FLUTTER_VERSION}}
channel: 'stable'
- run: flutter analyse
- run: flutter analyze

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: $FLUTTER_VERSION
flutter-version: ${{env.FLUTTER_VERSION}}
channel: 'stable'
- run: flutter test

release:
if: github.ref == 'refs/heads/main'
needs: [ analyse, test ]
needs: [ analyze, test ]
runs-on: ubuntu-latest
environment: release
steps:
Expand All @@ -57,7 +57,7 @@ jobs:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: $FLUTTER_VERSION
flutter-version: ${{env.FLUTTER_VERSION}}
channel: 'stable'
- name: Publish on pub.dev
run: dart publish
Expand Down
4 changes: 4 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"branches": [
{ "name": "beta-mode" },
{ "name": "main", "channel": "beta", "prerelease": "beta" }
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand Down

0 comments on commit 855b31d

Please sign in to comment.