mirror of
https://github.com/supabase/setup-cli.git
synced 2026-06-28 01:46:58 +00:00
Install Supabase CLI from npm
This commit is contained in:
@@ -7,7 +7,11 @@ The action supports `ubuntu-latest`, `windows-latest`, and `macos-latest`, and
|
||||
adds the requested `supabase` version to `PATH` for the rest of the job.
|
||||
|
||||
If `version` is omitted, the action checks the repository root for `bun.lock`,
|
||||
`pnpm-lock.yaml`, or `package-lock.json` and otherwise falls back to `latest`.
|
||||
`pnpm-lock.yaml`, or `package-lock.json` and otherwise falls back to npm
|
||||
`latest`.
|
||||
|
||||
The action provisions Node.js and npm internally; runners only need network
|
||||
access to the npm registry.
|
||||
|
||||
## Quick Start
|
||||
|
||||
@@ -24,19 +28,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: supabase/setup-cli@v2
|
||||
- uses: supabase/setup-cli@v3
|
||||
- run: supabase init
|
||||
- run: supabase db start
|
||||
```
|
||||
|
||||
To pin a specific CLI version:
|
||||
To pin a fixed npm-published CLI version:
|
||||
|
||||
```yaml
|
||||
- uses: supabase/setup-cli@v2
|
||||
- uses: supabase/setup-cli@v3
|
||||
with:
|
||||
version: 2.84.2
|
||||
```
|
||||
|
||||
To test the current beta release:
|
||||
|
||||
```yaml
|
||||
- uses: supabase/setup-cli@v3
|
||||
with:
|
||||
version: beta
|
||||
```
|
||||
|
||||
## Resources
|
||||
|
||||
- **Source Code**: <https://github.com/supabase/setup-cli>
|
||||
|
||||
Reference in New Issue
Block a user