Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/release-shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ on:
required: false
DF_FIREWALL_TOKEN:
required: false
LINEAR_CLI_STABLE_RELEASE_ACCESS_KEY:
required: false
LINEAR_CLI_BETA_RELEASE_ACCESS_KEY:
required: false
jobs:
build-blacksmith:
name: Build CLI artifacts (Blacksmith)
Expand Down Expand Up @@ -280,6 +284,8 @@ jobs:
CHANNEL: ${{ inputs.channel }}
NPM_TAG: ${{ inputs.npm_tag }}
VERSION: ${{ inputs.version }}
LINEAR_CLI_STABLE_RELEASE_ACCESS_KEY: ${{ secrets.LINEAR_CLI_STABLE_RELEASE_ACCESS_KEY }}
LINEAR_CLI_BETA_RELEASE_ACCESS_KEY: ${{ secrets.LINEAR_CLI_BETA_RELEASE_ACCESS_KEY }}
permissions:
contents: write
id-token: write
Expand All @@ -297,6 +303,7 @@ jobs:
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: true
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- name: Setup
Expand Down Expand Up @@ -417,6 +424,28 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: gh release edit "v${VERSION}" --draft=false

- name: Sync stable release to Linear
if: ${{ inputs.channel == 'stable' && env.LINEAR_CLI_STABLE_RELEASE_ACCESS_KEY != '' }}
uses: linear/linear-release-action@c0cb8354a362c24c6d3e0948f37fd66d07588e3f # v0
with:
access_key: ${{ env.LINEAR_CLI_STABLE_RELEASE_ACCESS_KEY }}
version: v${{ inputs.version }}
name: Supabase CLI v${{ inputs.version }}
links: |
GitHub Release=https://github.com/${{ github.repository }}/releases/tag/v${{ inputs.version }}
Release workflow=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

- name: Sync beta release to Linear
if: ${{ inputs.channel == 'beta' && env.LINEAR_CLI_BETA_RELEASE_ACCESS_KEY != '' }}
uses: linear/linear-release-action@c0cb8354a362c24c6d3e0948f37fd66d07588e3f # v0
with:
access_key: ${{ env.LINEAR_CLI_BETA_RELEASE_ACCESS_KEY }}
version: v${{ inputs.version }}
name: Supabase CLI v${{ inputs.version }}
links: |
GitHub Release=https://github.com/${{ github.repository }}/releases/tag/v${{ inputs.version }}
Release workflow=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

# Changelog backfill only needs tag + published GH release (from publish).
# Runs in parallel with brew/scoop/smoke; must not gate distribution.
backfill-release-notes:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ jobs:
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
DF_FIREWALL_TOKEN: ${{ secrets.DF_FIREWALL_TOKEN }}
LINEAR_CLI_STABLE_RELEASE_ACCESS_KEY: ${{ secrets.LINEAR_CLI_STABLE_RELEASE_ACCESS_KEY }}
LINEAR_CLI_BETA_RELEASE_ACCESS_KEY: ${{ secrets.LINEAR_CLI_BETA_RELEASE_ACCESS_KEY }}

# Posts to the release Slack channel once the pipeline succeeds. Listing
# `release` in `needs` without a status function in `if:` keeps the implicit
Expand Down
Loading