Skip to content

Publish releases

Publish releases #36

Workflow file for this run

name: Minimal App Token Push & PR Test
on:
workflow_dispatch:
jobs:
push-and-pr-test:
runs-on: ubuntu-latest
steps:
- name: Generate App token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Configure git user
run: |
git config --global user.name "supabase-releaser[bot]"
git config --global user.email "supabase-releaser[bot]@users.noreply.github.com"
- name: Remove credential helpers and set remote
run: |
git config --global --unset credential.helper || true
git config --local --unset credential.helper || true
git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
- name: Create and push branch
run: |
git checkout -b minimal-token-test
touch minimal.txt
git add minimal.txt
git commit -m "test: minimal token branch push"
git push origin minimal-token-test
- name: Create PR with gh CLI
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
gh pr create \
--base master \
--head minimal-token-test \
--title "Minimal token push test" \
--body "Automated PR from minimal App token workflow"