diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe25760..577c658 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,19 +7,19 @@ 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 @@ -27,13 +27,13 @@ jobs: - 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: @@ -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 diff --git a/.releaserc.json b/.releaserc.json index 740671a..225c2de 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,4 +1,8 @@ { + "branches": [ + { "name": "beta-mode" }, + { "name": "main", "channel": "beta", "prerelease": "beta" } + ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator",