Skip to content

Commit

Permalink
chore: use GithubApp to bypass branch protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nordquist committed May 11, 2024
1 parent 538aa7d commit 452b23b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
task: linux
- os: windows-latest
task: win
# - os: macos-latest
# task: mac
- os: macos-latest
task: mac
runs-on: ${{ matrix.build.os }}
steps:
- if: matrix.build.os == 'ubuntu-latest'
Expand All @@ -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 }}

0 comments on commit 452b23b

Please sign in to comment.