From 60bbbc54d7523464867a1df8b50397a645be649b Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Sat, 11 May 2024 15:45:31 +0200 Subject: [PATCH] chore: use GithubApp to bypass branch protection --- .github/workflows/cd.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 84f56a7..c9be4e2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -31,13 +31,12 @@ jobs: node-version: 20 - run: npm install -g yarn - run: yarn + - id: create_token # get ReleaseBot access token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.RELEASE_BOT_APP_ID }} + private_key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} - run: npx semantic-release --ci + name: Semantic Release env: - GH_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} - #- run: yarn build - #- run: yarn prepare-release - # - run: yarn package ${{ matrix.build.task }} - # env: - # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} + GH_TOKEN: ${{ steps.create_token.outputs.token }}