mirror of
https://github.com/supabase/setup-cli.git
synced 2026-06-28 01:46:58 +00:00
feat: support installing the latest beta release via version: beta
The `latest` channel resolves through the GitHub `/releases/latest` endpoint, which never returns prereleases, so there was no way to track the CLI beta channel — any other value was treated as an exact version. Add a `beta` channel that lists releases and installs the most recent beta prerelease. This lets consumers surface (and fix) breakages early. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01APKXLPMGXsnWUSU3i16Lfv
This commit is contained in:
19
README.md
19
README.md
@@ -40,6 +40,17 @@ steps:
|
||||
version: 2.84.2
|
||||
```
|
||||
|
||||
To always track the latest beta prerelease, set `version` to `beta`. This is
|
||||
useful for surfacing (and fixing) breakages early:
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: supabase/setup-cli@v2
|
||||
with:
|
||||
version: beta
|
||||
github-token: ${{ github.token }}
|
||||
```
|
||||
|
||||
Run `supabase db start` to execute all migrations on a fresh database:
|
||||
|
||||
```yaml
|
||||
@@ -59,10 +70,10 @@ on Windows and macOS runners.
|
||||
|
||||
The action supports the following inputs:
|
||||
|
||||
| Name | Type | Description | Default | Required |
|
||||
| -------------- | ------ | -------------------------------------------------------------------------- | --------------------------------- | -------- |
|
||||
| `version` | String | Supabase CLI version (or `latest`) | Root lockfile version or `latest` | false |
|
||||
| `github-token` | String | GitHub token used to resolve `latest` without unauthenticated API limiting | | false |
|
||||
| Name | Type | Description | Default | Required |
|
||||
| -------------- | ------ | --------------------------------------------------------------------------------- | --------------------------------- | -------- |
|
||||
| `version` | String | Supabase CLI version (or `latest`, or `beta` for the latest beta release) | Root lockfile version or `latest` | false |
|
||||
| `github-token` | String | GitHub token used to resolve `latest`/`beta` without unauthenticated API limiting | | false |
|
||||
|
||||
## Advanced Usage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user