From c2044a6d2f29be1ac8ab5ce8e4056abd1fdce294 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Fri, 28 Nov 2025 23:36:07 +0100 Subject: [PATCH] fix --- .github/workflows/release-automated.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-automated.yml b/.github/workflows/release-automated.yml index 13f88a50..912931f9 100644 --- a/.github/workflows/release-automated.yml +++ b/.github/workflows/release-automated.yml @@ -16,21 +16,20 @@ on: env: package: ${{ startsWith(github.ref_name, 'dart-') && 'dart' || startsWith(github.ref_name, 'flutter-') && 'flutter' || '' }} jobs: - # Semantic Release job - runs on branch pushes to create tags and update changelogs semantic-release: if: github.event_name == 'push' && github.ref_type == 'branch' runs-on: ubuntu-latest timeout-minutes: 10 permissions: - contents: write # Required for creating tags and commits - issues: write # Required for commenting on issues - pull-requests: write # Required for commenting on PRs + contents: write + issues: write + pull-requests: write steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 # Required for semantic-release - persist-credentials: true + fetch-depth: 0 + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -39,26 +38,26 @@ jobs: - name: Install dependencies run: npm ci - name: Run semantic-release for dart package + run: npx semantic-release env: + GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PKG_NAME: dart - run: npx semantic-release - name: Run semantic-release for flutter package + run: npx semantic-release env: + GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PKG_NAME: flutter - run: npx semantic-release - - # Publishing job - runs when a tag is pushed (created by semantic-release) release: if: github.event_name == 'push' && github.ref_type == 'tag' runs-on: ubuntu-latest timeout-minutes: 10 permissions: - id-token: write # This is required for requesting the JWT + id-token: write steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.ref_name }} - name: Setup dart