From 47f3edd404fc9cd36925e97f91c40252d6d41d90 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 6 Mar 2025 12:03:24 +0100 Subject: [PATCH] ci(#202): Update CI to use FG-PAT Set the semantic-release to ignore for CC "^ci" message, Set a fine-grained personal access token for my account to let the bot work on my behalf on my repository, Add permissions to the bot to write on pull-requests, issues, and commit content on main. --- .github/workflows/auto-release.yml | 11 +++++++---- .releaserc.yml | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) 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"