fix(agent-button): agent on off button for admins (#1008) #103
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # so semantic-release can push commits + tags | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # semantic-release needs full history + tags | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
working-directory: ./server | |
run: bun install | |
# NEW STEP: Get GitHub App Token | |
- name: Get GitHub App Token | |
id: github-app-token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.XYNE_RELEASE_APP_ID }} | |
private_key: ${{ secrets.XYNE_RELEASE_APP_SECRET }} | |
installation_retrieval_mode: "repository" | |
installation_retrieval_payload: ${{ github.repository }} | |
- name: Run semantic-release | |
working-directory: ./server | |
env: | |
HUSKY: 0 | |
# CHANGED: Use GitHub App token instead of default GITHUB_TOKEN | |
GITHUB_TOKEN: ${{ steps.github-app-token.outputs.token }} | |
GH_TOKEN: ${{ steps.github-app-token.outputs.token }} | |
run: bunx semantic-release --no-ci |