diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index eea52b7..61f5e06 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -4,23 +4,25 @@ run-name: Release a new version of the icon pack on PR's merging on: pull_request: types: - - closed + - merged branches: - main jobs: semantic-release: - if: "!contains(github.event.head_commit.message, 'ci:')" + if: "!startsWith(github.event.head_commit.message, 'ci')" name: Semantic Release runs-on: ubuntu-latest permissions: contents: write + issues: write + pull-requests: write steps: # Checkout data from the repository - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 with: fetch-depth: 0 persist-credentials: false @@ -30,4 +32,5 @@ jobs: uses: cycjimmy/semantic-release-action@v4 id: semantic # Need an `id` for output variables env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + # Use admin FG-PAT + GITHUB_TOKEN: ${{ secrets.RELEABOT_TOKEN }} \ No newline at end of file diff --git a/.releaserc.yml b/.releaserc.yml index 6114e05..1ed17ff 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -1,7 +1,7 @@ plugins: - "@semantic-release/commit-analyzer" - "@semantic-release/release-notes-generator" - - "@semantic-release/changelog" +# - "@semantic-release/changelog" - "@semantic-release/git" - "@semantic-release/github"