mirror of
https://github.com/supabase/setup-cli.git
synced 2026-06-28 09:57:03 +00:00
Compare commits
10 Commits
v2.0.0
...
julien/cli
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
644b84a9ab | ||
|
|
3c2f5e2ae3 | ||
|
|
365cb468b9 | ||
|
|
e0099b2bdb | ||
|
|
52a446718e | ||
|
|
3095b000b6 | ||
|
|
a4d563a017 | ||
|
|
0abc813ee3 | ||
|
|
f55616e35e | ||
|
|
2df3f5f50e |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -46,7 +46,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
version: [1.0.0, latest]
|
version: [1.178.2, latest, beta]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
- uses: ./
|
- uses: ./
|
||||||
|
|||||||
4
.github/workflows/dependabot.yml
vendored
4
.github/workflows/dependabot.yml
vendored
@@ -20,14 +20,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Metadata drives the non-major gating used for approval and auto-merge.
|
# Metadata drives the non-major gating used for approval and auto-merge.
|
||||||
- id: meta
|
- id: meta
|
||||||
uses: dependabot/fetch-metadata@ffa630c65fa7e0ecfa0625b5ceda64399aea1b36 # v3.0.0
|
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- name: Generate token
|
- name: Generate token
|
||||||
id: app-token
|
id: app-token
|
||||||
if: ${{ steps.meta.outputs.update-type == null || steps.meta.outputs.update-type == 'version-update:semver-patch' || steps.meta.outputs.update-type == 'version-update:semver-minor' }}
|
if: ${{ steps.meta.outputs.update-type == null || steps.meta.outputs.update-type == 'version-update:semver-patch' || steps.meta.outputs.update-type == 'version-update:semver-minor' }}
|
||||||
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
|
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
||||||
with:
|
with:
|
||||||
app-id: ${{ secrets.APP_ID }}
|
app-id: ${{ secrets.APP_ID }}
|
||||||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
||||||
|
|||||||
15
.github/workflows/licensed.yml
vendored
15
.github/workflows/licensed.yml
vendored
@@ -1,6 +1,6 @@
|
|||||||
# This workflow checks the statuses of cached dependencies used in this action
|
# This workflow refreshes and checks dependency license records used in this
|
||||||
# with the help of the Licensed tool. If any licenses are invalid or missing,
|
# action with the help of the Licensed tool. If any licenses are invalid or
|
||||||
# this workflow will fail. See: https://github.com/licensee/licensed
|
# missing, this workflow will fail. See: https://github.com/licensee/licensed
|
||||||
|
|
||||||
name: Licensed
|
name: Licensed
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ jobs:
|
|||||||
- name: Setup Ruby
|
- name: Setup Ruby
|
||||||
id: setup-ruby
|
id: setup-ruby
|
||||||
if: steps.license-inputs.outputs.changed == 'true'
|
if: steps.license-inputs.outputs.changed == 'true'
|
||||||
uses: ruby/setup-ruby@e65c17d16e57e481586a6a5a0282698790062f92 # v1.300.0
|
uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0
|
||||||
with:
|
with:
|
||||||
ruby-version: ruby
|
ruby-version: ruby
|
||||||
|
|
||||||
@@ -81,6 +81,11 @@ jobs:
|
|||||||
version: 4.x
|
version: 4.x
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Refresh License Cache
|
||||||
|
id: refresh-license-cache
|
||||||
|
if: steps.license-inputs.outputs.changed == 'true'
|
||||||
|
run: licensed cache
|
||||||
|
|
||||||
- name: Check Licenses
|
- name: Check Licenses
|
||||||
id: check-licenses
|
id: check-licenses
|
||||||
if: steps.license-inputs.outputs.changed == 'true'
|
if: steps.license-inputs.outputs.changed == 'true'
|
||||||
@@ -111,7 +116,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Ruby
|
- name: Setup Ruby
|
||||||
id: setup-ruby
|
id: setup-ruby
|
||||||
uses: ruby/setup-ruby@e65c17d16e57e481586a6a5a0282698790062f92 # v1.300.0
|
uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0
|
||||||
with:
|
with:
|
||||||
ruby-version: ruby
|
ruby-version: ruby
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: "@actions/tool-cache"
|
|
||||||
version: 4.0.0
|
|
||||||
type: npm
|
|
||||||
summary: Actions tool-cache lib
|
|
||||||
homepage: https://github.com/actions/toolkit/tree/main/packages/tool-cache
|
|
||||||
license: mit
|
|
||||||
licenses:
|
|
||||||
- sources: LICENSE.md
|
|
||||||
text: |-
|
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright 2019 GitHub
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
notices: []
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
---
|
|
||||||
name: semver
|
|
||||||
version: 7.7.4
|
|
||||||
type: npm
|
|
||||||
summary: The semantic version parser used by npm.
|
|
||||||
homepage:
|
|
||||||
license: isc
|
|
||||||
licenses:
|
|
||||||
- sources: LICENSE
|
|
||||||
text: |
|
|
||||||
The ISC License
|
|
||||||
|
|
||||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted, provided that the above
|
|
||||||
copyright notice and this permission notice appear in all copies.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
||||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
||||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
||||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
||||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
||||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
notices: []
|
|
||||||
38
README.md
38
README.md
@@ -24,27 +24,41 @@ Setup the `supabase` CLI:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
```
|
```
|
||||||
|
|
||||||
If `version` is omitted, the action checks the repository root for `bun.lock`,
|
If `version` is omitted, the action checks the repository root for `bun.lock`,
|
||||||
`pnpm-lock.yaml`, or `package-lock.json` and uses the declared `supabase`
|
`pnpm-lock.yaml`, or `package-lock.json` and installs the declared `supabase`
|
||||||
version. If no supported lockfile is present, it falls back to `latest`.
|
package version through npm. If the lockfile includes package integrity
|
||||||
|
metadata, the action verifies it against the npm registry before installing. If
|
||||||
|
no supported lockfile is present, it falls back to `latest`.
|
||||||
|
|
||||||
A specific version of the `supabase` CLI can be installed:
|
The action provisions Node.js and npm internally, so runners do not need npm
|
||||||
|
preinstalled. Runners must be able to reach the npm registry to install the CLI
|
||||||
|
package.
|
||||||
|
|
||||||
|
A fixed npm-published version, `latest`, or `beta` of the `supabase` CLI can be
|
||||||
|
installed:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
with:
|
with:
|
||||||
version: 2.84.2
|
version: 2.84.2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- uses: supabase/setup-cli@v3
|
||||||
|
with:
|
||||||
|
version: beta
|
||||||
|
```
|
||||||
|
|
||||||
Run `supabase db start` to execute all migrations on a fresh database:
|
Run `supabase db start` to execute all migrations on a fresh database:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- run: supabase init
|
- run: supabase init
|
||||||
@@ -59,8 +73,8 @@ on Windows and macOS runners.
|
|||||||
The action supports the following inputs:
|
The action supports the following inputs:
|
||||||
|
|
||||||
| Name | Type | Description | Default | Required |
|
| Name | Type | Description | Default | Required |
|
||||||
| --------- | ------ | ---------------------------------- | --------------------------------- | -------- |
|
| --------- | ------ | ---------------------------------------------------------------- | --------------------------------- | -------- |
|
||||||
| `version` | String | Supabase CLI version (or `latest`) | Root lockfile version or `latest` | false |
|
| `version` | String | Supabase CLI `latest`, `beta`, or fixed version published to npm | Root lockfile version or `latest` | false |
|
||||||
|
|
||||||
## Advanced Usage
|
## Advanced Usage
|
||||||
|
|
||||||
@@ -68,7 +82,7 @@ Check generated TypeScript types are up-to-date with Postgres schema:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
- run: supabase init
|
- run: supabase init
|
||||||
- run: supabase db start
|
- run: supabase db start
|
||||||
- name: Verify generated types match Postgres schema
|
- name: Verify generated types match Postgres schema
|
||||||
@@ -91,7 +105,7 @@ env:
|
|||||||
PROJECT_ID: <project-id>
|
PROJECT_ID: <project-id>
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
- run: supabase link --project-ref $PROJECT_ID
|
- run: supabase link --project-ref $PROJECT_ID
|
||||||
- run: supabase db push
|
- run: supabase db push
|
||||||
```
|
```
|
||||||
@@ -100,7 +114,7 @@ Export local Supabase env vars for app tests:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
- run: supabase init
|
- run: supabase init
|
||||||
- run: supabase start
|
- run: supabase start
|
||||||
- name: Export local Supabase env vars
|
- name: Export local Supabase env vars
|
||||||
@@ -145,7 +159,7 @@ need to perform a few setup steps before you can work on the action.
|
|||||||
## Publish
|
## Publish
|
||||||
|
|
||||||
1. Create a new GitHub release
|
1. Create a new GitHub release
|
||||||
2. Rebase `v2` branch on `main`
|
2. Rebase `v3` branch on `main`
|
||||||
|
|
||||||
Your action is now published! :rocket:
|
Your action is now published! :rocket:
|
||||||
|
|
||||||
|
|||||||
92
action.yml
92
action.yml
@@ -3,7 +3,7 @@ description: Setup Supabase CLI, supabase, on GitHub Actions runners
|
|||||||
author: Supabase
|
author: Supabase
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: Version of Supabase CLI to install. If omitted, detect from the root lockfile and otherwise use latest.
|
description: Supabase CLI version to install. Supports latest, beta, or a fixed version published to npm. If omitted, detect from the root lockfile and otherwise use latest.
|
||||||
required: false
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
version:
|
version:
|
||||||
@@ -12,19 +12,105 @@ outputs:
|
|||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
- id: bun-download
|
||||||
|
name: Resolve Bun Download URL
|
||||||
|
shell: sh
|
||||||
|
working-directory: ${{ github.action_path }}
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
if [ "${RUNNER_OS}" != "Linux" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# setup-bun does not detect Linux musl yet, so Alpine-like containers need the musl asset explicitly.
|
||||||
|
is_musl=false
|
||||||
|
if [ -f /etc/alpine-release ]; then
|
||||||
|
is_musl=true
|
||||||
|
elif command -v ldd >/dev/null 2>&1 && ldd --version 2>&1 | grep -qi musl; then
|
||||||
|
is_musl=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${is_musl}" != "true" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
version="$(cat .bun-version)"
|
||||||
|
case "$(uname -m)" in
|
||||||
|
x86_64) arch="x64" ;;
|
||||||
|
aarch64|arm64) arch="aarch64" ;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported Linux musl architecture: $(uname -m)" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo "url=https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-linux-${arch}-musl.zip" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Install Alpine Runtime Dependencies
|
||||||
|
shell: sh
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
if [ "${RUNNER_OS}" != "Linux" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
is_musl=false
|
||||||
|
if [ -f /etc/alpine-release ]; then
|
||||||
|
is_musl=true
|
||||||
|
elif command -v ldd >/dev/null 2>&1 && ldd --version 2>&1 | grep -qi musl; then
|
||||||
|
is_musl=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${is_musl}" != "true" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bun's musl binary and the Supabase CLI shim both dynamically link libstdc++ and libgcc.
|
||||||
|
if command -v apk >/dev/null 2>&1; then
|
||||||
|
missing_packages=""
|
||||||
|
for package in libstdc++ libgcc; do
|
||||||
|
if ! apk info -e "${package}" >/dev/null 2>&1; then
|
||||||
|
missing_packages="${missing_packages} ${package}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -z "${missing_packages}" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(id -u)" != "0" ]; then
|
||||||
|
echo "::error::Alpine/musl containers need${missing_packages} to run Supabase CLI. Add 'apk add --no-cache${missing_packages}' before supabase/setup-cli, or run this job container as root."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
apk add --no-cache ${missing_packages}
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "::error::Linux musl containers need libstdc++ and libgcc to run Supabase CLI. Install them before supabase/setup-cli."
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
||||||
|
with:
|
||||||
|
node-version: 24
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
||||||
with:
|
with:
|
||||||
bun-version-file: ${{ github.action_path }}/.bun-version
|
bun-version-file: ${{ github.action_path }}/.bun-version
|
||||||
|
bun-download-url: ${{ steps.bun-download.outputs.url }}
|
||||||
|
|
||||||
- name: Install Action Dependencies
|
- name: Install Action Dependencies
|
||||||
shell: bash
|
shell: sh
|
||||||
working-directory: ${{ github.action_path }}
|
working-directory: ${{ github.action_path }}
|
||||||
run: bun install --frozen-lockfile --production
|
run: bun install --frozen-lockfile --production
|
||||||
|
|
||||||
- id: setup-cli
|
- id: setup-cli
|
||||||
name: Setup Supabase CLI
|
name: Setup Supabase CLI
|
||||||
shell: bash
|
shell: sh
|
||||||
working-directory: ${{ github.action_path }}
|
working-directory: ${{ github.action_path }}
|
||||||
env:
|
env:
|
||||||
INPUT_VERSION: ${{ inputs.version }}
|
INPUT_VERSION: ${{ inputs.version }}
|
||||||
|
|||||||
115
bun.lock
115
bun.lock
@@ -5,21 +5,20 @@
|
|||||||
"": {
|
"": {
|
||||||
"name": "setup-cli",
|
"name": "setup-cli",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^3.0.0",
|
"@actions/core": "^3.0.1",
|
||||||
"@actions/tool-cache": "^4.0.0",
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/bun": "^1.0.10",
|
"@tsconfig/bun": "^1.0.10",
|
||||||
"@types/bun": "^1.3.12",
|
"@types/bun": "^1.3.14",
|
||||||
"@typescript/native-preview": "^7.0.0-dev.20260410.1",
|
"@typescript/native-preview": "^7.0.0-dev.20260410.1",
|
||||||
"oxfmt": "^0.45.0",
|
"oxfmt": "^0.49.0",
|
||||||
"oxlint": "^1.60.0",
|
"oxlint": "^1.64.0",
|
||||||
"oxlint-tsgolint": "^0.20.0",
|
"oxlint-tsgolint": "^0.22.1",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"packages": {
|
"packages": {
|
||||||
"@actions/core": ["@actions/core@3.0.0", "", { "dependencies": { "@actions/exec": "^3.0.0", "@actions/http-client": "^4.0.0" } }, "sha512-zYt6cz+ivnTmiT/ksRVriMBOiuoUpDCJJlZ5KPl2/FRdvwU3f7MPh9qftvbkXJThragzUZieit2nyHUyw53Seg=="],
|
"@actions/core": ["@actions/core@3.0.1", "", { "dependencies": { "@actions/exec": "^3.0.0", "@actions/http-client": "^4.0.0" } }, "sha512-a6d/Nwahm9fliVGRhdhofo40HjHQasUPusmc7vBfyky+7Z+P2A1J68zyFVaNcEclc/Se+eO595oAr5nwEIoIUA=="],
|
||||||
|
|
||||||
"@actions/exec": ["@actions/exec@3.0.0", "", { "dependencies": { "@actions/io": "^3.0.2" } }, "sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw=="],
|
"@actions/exec": ["@actions/exec@3.0.0", "", { "dependencies": { "@actions/io": "^3.0.2" } }, "sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw=="],
|
||||||
|
|
||||||
@@ -27,99 +26,97 @@
|
|||||||
|
|
||||||
"@actions/io": ["@actions/io@3.0.2", "", {}, "sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw=="],
|
"@actions/io": ["@actions/io@3.0.2", "", {}, "sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw=="],
|
||||||
|
|
||||||
"@actions/tool-cache": ["@actions/tool-cache@4.0.0", "", { "dependencies": { "@actions/core": "^3.0.0", "@actions/exec": "^3.0.0", "@actions/http-client": "^4.0.0", "@actions/io": "^3.0.0", "semver": "^7.7.3" } }, "sha512-L8P9HbXvpvqjZDveb/fdsa55IVC0trfPgQ4ZwGo6r5af6YDVdM9vMGPZ7rgY2fAT9gGj4PSYd6bYlg3p3jD78A=="],
|
"@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.49.0", "", { "os": "android", "cpu": "arm" }, "sha512-HbifJ84prIh9+55CTPAU35JdRQrwg47y16cGerCC+iejSKOuHXYo2WDql6l7cQlzrYVtc3f4UWY+dBj2lRmOeA=="],
|
||||||
|
|
||||||
"@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.45.0", "", { "os": "android", "cpu": "arm" }, "sha512-A/UMxFob1fefCuMeGxQBulGfFE38g2Gm23ynr3u6b+b7fY7/ajGbNsa3ikMIkGMLJW/TRoQaMoP1kME7S+815w=="],
|
"@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.49.0", "", { "os": "android", "cpu": "arm64" }, "sha512-Ef7SKJqAaH2d7E6eXZZa2OffIShbhFMxnGK0zd93p4qiyTJr75B0qf7lrPD+qQOwcf04BrjYJ0JUxq8d5+yZwg=="],
|
||||||
|
|
||||||
"@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.45.0", "", { "os": "android", "cpu": "arm64" }, "sha512-L63z4uZmHjgvvqvMJD7mwff8aSBkM0+X4uFr6l6U5t6+Qc9DCLVZWIunJ7Gm4fn4zHPdSq6FFQnhu9yqqobxIg=="],
|
"@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.49.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-8x5DN9CsFfb432sHa9NyqX5XisGUdA53LPEGSdv/VniS+v4uEOR8Orv7A9QSB98Xxgp0t6r31DzQA/wpIobGqQ=="],
|
||||||
|
|
||||||
"@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.45.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-UV34dd623FzqT+outIGndsCA/RBB+qgB3XVQhgmmJ9PJwa37NzPC9qzgKeOhPKxVk2HW+JKldQrVL54zs4Noww=="],
|
"@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.49.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-e0+DSVzk4ewhMVKNYDaRTmP81jNMBWR1X9al0cVKWS+hDM/dElNqD5zjTOCuLOZc4oOdp2Gx2ldrVL+yYo9TZQ=="],
|
||||||
|
|
||||||
"@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.45.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-pMNJv0CMa1pDefVPeNbuQxibh8ITpWDFEhMC/IBB9Zlu76EbgzYwrzI4Cb11mqX2+rIYN70UTrh3z06TM59ptQ=="],
|
"@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.49.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-W+mjtYtrQvFbXT/uNT+221OBhGRZ8UqNsLxjTWsjZ4GsQnRdvRC/N2NCK86BcamWr7lsTxwpwN3PULnr78sgcQ=="],
|
||||||
|
|
||||||
"@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.45.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-xTcRoxbbo61sW2+ZRPeH+vp/o9G8gkdhiVumFU+TpneiPm14c79l6GFlxPXlCE9bNWikigbsrvJw46zCVAQFfg=="],
|
"@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.49.0", "", { "os": "linux", "cpu": "arm" }, "sha512-Rtv6UevV7czDlLqil+NZUe4d8gs8jQo/zScSpumwyf7I+fSdLc+hc8AF3MQC7ymxSMMD9+vfiqQlsIf7wOAzXA=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.45.0", "", { "os": "linux", "cpu": "arm" }, "sha512-hWL8Hdni+3U1mPFx1UtWeGp3tNb6EhBAUHRMbKUxVkOp3WwoJbpVO2bfUVbS4PfpledviXXNHSTl1veTa6FhkQ=="],
|
"@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.49.0", "", { "os": "linux", "cpu": "arm" }, "sha512-sBi+8C/Q/MdKa5FL8ibAUCdhFBGFH7HFN/Qoyd5xQbZ/0ky3NMPpKfIBpaH0lhK2dXkGLczVQUoZ+xuNSerCdQ=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.45.0", "", { "os": "linux", "cpu": "arm" }, "sha512-6Blt/0OBT7vvfQpqYuYbpbFLPqSiaYpEJzUUWhinPEuADypDbtV1+LdjM0vYBNGPvnj85ex7lTerEX6JGcPt9w=="],
|
"@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.49.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-JIfWenFhlzx+O8YygyZhoHFzTsdgDhxhbDRnE2iJLnnM5pWKScFvPECO2vOlA7JqJ/9S1g3uzEKuRCkHFwTjvA=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.45.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-jLjoLfe+hGfjhA8hNBSdw85yCA8ePKq7ME4T+g6P9caQXvmt6IhE2X7iVjnVdkmYUWEzZrxlh4p6RkDmAMJY/A=="],
|
"@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.49.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-iNzkMPG18jPkwBOZ4/HEjwqfzAjq4RrUQ0CgId/fC1ENvYD5jLVAaU/gWgpiqP1ys07kxSsSggDd1fp3E7mQHw=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.45.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-XQKXZIKYJC3GQJ8FnD3iMntpw69Wd9kDDK/Xt79p6xnFYlGGxSNv2vIBvRTDg5CKByWFWWZLCRDOXoP/m6YN4g=="],
|
"@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.49.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-BPHA/NN3LvoIXiid+iz3BHt5V0Rzx0tXAqRUovwE1NsbDaLG9e8mtv7evDGRIkVQacqTDBv0XL25THHsxSJosQ=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.45.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-+g5RiG+xOkdrCWkKodv407nTvMq4vYM18Uox2MhZBm/YoqFxxJpWKsloskFFG5NU13HGPw1wzYjjOVcyd9moCA=="],
|
"@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.49.0", "", { "os": "linux", "cpu": "none" }, "sha512-3Eroshe+s69htC9JIL0+zLGQczLtRKezkMhwqQC21VC5Z/fuLvzLfbAOLgJLUq601H8gDYjy7deYycfOBjCvWg=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.45.0", "", { "os": "linux", "cpu": "none" }, "sha512-V7dXKoSyEbWAkkSF4JJNtF+NJZDmJoSarSoP30WCsB3X636Rehd3CvxBj49FIJxEBFWhvcUjGSHVeU8Erck1bQ=="],
|
"@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.49.0", "", { "os": "linux", "cpu": "none" }, "sha512-fnaERGgsxGm0lKAmO72EYR4BA3qBnzBTJBTi6EtUMq1D4R7EexRBMU4voXnx4TXla3SEDl9x4uNp/18SbkPjGg=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.45.0", "", { "os": "linux", "cpu": "none" }, "sha512-Vdelft1sAEYojVGgcODEFXSWYQYlIvoyIGWebKCuUibd1tvS1TjTx413xG2ZLuHpYj45CkN/ztMLMX6jrgqpgg=="],
|
"@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.49.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-rBwasMl1Uul1MCCeTGEFKnOTL7VUxHf+634jWStrQAbzpBJgd5Yz5m4F7exVCsoI8PHn57dNjssXagXLCLB5yA=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.45.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-RR7xKgNpqwENnK0aYCGYg0JycY2n93J0reNjHyes+I9Gq52dH95x+CBlnlAQHCPfz6FGnKA9HirgUl14WO6o7w=="],
|
"@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.49.0", "", { "os": "linux", "cpu": "x64" }, "sha512-BoC/F9xHe2y/deuBGA5Aw7bes07OD2gcL2wlpzTrfImR92vPP7S/k3LBTyspQZCNIVNdagkELcqKELwMLGIfAg=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.45.0", "", { "os": "linux", "cpu": "x64" }, "sha512-U/QQ0+BQNSHxjuXR/utvXnQ50Vu5kUuqEomZvQ1/3mhgbBiMc2WU9q5kZ5WwLp3gnFIx9ibkveoRSe2EZubkqg=="],
|
"@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.49.0", "", { "os": "linux", "cpu": "x64" }, "sha512-umY6jFADAo/oztFKl8D/S6vSrG6oBpEskcentiRuz42kZVU2kfDXMWCYavxyZR2bwPjqkHpcHZ6EZFiH3Qj9ZA=="],
|
||||||
|
|
||||||
"@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.45.0", "", { "os": "linux", "cpu": "x64" }, "sha512-o5TLOUCF0RWQjsIS06yVC+kFgp092/yLe6qBGSUvtnmTVw9gxjpdQSXc3VN5Cnive4K11HNstEZF8ROKHfDFSw=="],
|
"@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.49.0", "", { "os": "none", "cpu": "arm64" }, "sha512-J85zQMiw2pXiGPK+OusmDvSnJ/dgpgN7VgmB2zOBtgS8F+nsOUfSg9ZEBrwbQscjZ7tkPbm38CG4VF5f53MsiA=="],
|
||||||
|
|
||||||
"@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.45.0", "", { "os": "none", "cpu": "arm64" }, "sha512-RnGcV3HgPuOjsGx/k9oyRNKmOp+NBLGzZTdPDYbc19r7NGeYPplnUU/BfU35bX2Y/O4ejvHxcfkvW2WoYL/gsg=="],
|
"@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.49.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-38K67XR++CoFFORDd4sMFwUVAnD6msYBdGTei+qvKGrRPO6S2PbrYPNL/eQQ1RgnnxOegNba0YQwg6uRkNcw6A=="],
|
||||||
|
|
||||||
"@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.45.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-v3Vj7iKKsUFwt9w5hsqIIoErKVoENC6LoqfDlteOQ5QMDCXihlqLoxpmviUhXnNncg4zV6U9BPwlBbwa+qm4wg=="],
|
"@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.49.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-rXVe0HICwQF0dBgbQtBCoYf8x/SidPIdhyQl+iPuJlV7suV+qDv7yUEB3wQ4qC3nOeNxz287SwFXKzyr0kWgEg=="],
|
||||||
|
|
||||||
"@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.45.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-N8yotPBX6ph0H3toF4AEpdCeVPrdcSetj+8eGiZGsrLsng3bs/Q5HPu4bbSxip5GBPx5hGbGHrZwH4+rcrjhHA=="],
|
"@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.49.0", "", { "os": "win32", "cpu": "x64" }, "sha512-gwWLwSEmBBfIK/Wh7GGd658161o4RKAvHWRaRQbJm571iQXGKfyr7UKsI1vsWvDlNLc30CxJDc8mMmCvJ/kczQ=="],
|
||||||
|
|
||||||
"@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.45.0", "", { "os": "win32", "cpu": "x64" }, "sha512-w5MMTRCK1dpQeRA+HHqXQXyN33DlG/N2LOYxJmaT4fJjcmZrbNnqw7SmIk7I2/a2493PPLZ+2E/Ar6t2iKVMug=="],
|
"@oxlint-tsgolint/darwin-arm64": ["@oxlint-tsgolint/darwin-arm64@0.22.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-4150Lpgc1YM09GcjA6GSrra1JoPjC7aOpfywLjWEY4vW0Sd1qKzqHF1WRaiw0/qUZ40OATYdv3aRd7ipPkWQbw=="],
|
||||||
|
|
||||||
"@oxlint-tsgolint/darwin-arm64": ["@oxlint-tsgolint/darwin-arm64@0.20.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-KKQcIHZHMxqpHUA1VXIbOG6chNCFkUWbQy6M+AFVtPKkA/3xAeJkJ3njoV66bfzwPHRcWQO+kcj5XqtbkjakoA=="],
|
"@oxlint-tsgolint/darwin-x64": ["@oxlint-tsgolint/darwin-x64@0.22.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-vFWcPWYOgZs4HWcgS1EjUZg33NLcNfEYU49KGImmCfZWkflENrmBYV4HN/C0YeAPum6ZZ/goPSvQrB/cOD+NfA=="],
|
||||||
|
|
||||||
"@oxlint-tsgolint/darwin-x64": ["@oxlint-tsgolint/darwin-x64@0.20.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-7HeVMuclGfG+NLZi2ybY0T4fMI7/XxO/208rJk+zEIloKkVnlh11Wd241JMGwgNFXn+MLJbOqOfojDb2Dt4L1g=="],
|
"@oxlint-tsgolint/linux-arm64": ["@oxlint-tsgolint/linux-arm64@0.22.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-6LiUpP0Zir3+29FvBm7Y28q/dBjSHqTZ5MhG1Ckw4fGhI4cAvbcwXaKvbjx1TP7rRmBNOoq/M5xdpHjTb+GAew=="],
|
||||||
|
|
||||||
"@oxlint-tsgolint/linux-arm64": ["@oxlint-tsgolint/linux-arm64@0.20.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-zxhUwz+WSxE6oWlZLK2z2ps9yC6ebmgoYmjAl0Oa48+GqkZ56NVgo+wb8DURNv6xrggzHStQxqQxe3mK51HZag=="],
|
"@oxlint-tsgolint/linux-x64": ["@oxlint-tsgolint/linux-x64@0.22.1", "", { "os": "linux", "cpu": "x64" }, "sha512-fuX1hEQfpHauUbXADsfqVhRzrUrGabzGXbj5wsp2vKhV5uk/Rze8Mba9GdjFGECzvXudMGqHqxB4r6jGRdhxVA=="],
|
||||||
|
|
||||||
"@oxlint-tsgolint/linux-x64": ["@oxlint-tsgolint/linux-x64@0.20.0", "", { "os": "linux", "cpu": "x64" }, "sha512-/1l6FnahC9im8PK+Ekkx/V3yetO/PzZnJegE2FXcv/iXEhbeVxP/ouiTYcUQu9shT1FWJCSNti1VJHH+21Y1dg=="],
|
"@oxlint-tsgolint/win32-arm64": ["@oxlint-tsgolint/win32-arm64@0.22.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-8SZidAj+jrbZf9ZjBEYW0tiNZ+KasqB2zgW26qdiPpQSF/DzURnPmXz651IeA9YsmbVdHGIooEHUmev6QJdquA=="],
|
||||||
|
|
||||||
"@oxlint-tsgolint/win32-arm64": ["@oxlint-tsgolint/win32-arm64@0.20.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-oPZ5Yz8sVdo7P/5q+i3IKeix31eFZ55JAPa1+RGPoe9PoaYVsdMvR6Jvib6YtrqoJnFPlg3fjEjlEPL8VBKYJA=="],
|
"@oxlint-tsgolint/win32-x64": ["@oxlint-tsgolint/win32-x64@0.22.1", "", { "os": "win32", "cpu": "x64" }, "sha512-QweSk9H5lFh5Y+WUf2Kq/OAN88V6+62ZwGhP38gqdRotI90luXSMkruFTj7Q2rYrzH4ZVNaSqx7NY8JpSfIzqg=="],
|
||||||
|
|
||||||
"@oxlint-tsgolint/win32-x64": ["@oxlint-tsgolint/win32-x64@0.20.0", "", { "os": "win32", "cpu": "x64" }, "sha512-4stx8RHj3SP9vQyRF/yZbz5igtPvYMEUR8CUoha4BVNZihi39DpCR8qkU7lpjB5Ga1DRMo2pHaA4bdTOMaY4mw=="],
|
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.64.0", "", { "os": "android", "cpu": "arm" }, "sha512-2r6Nq3XXGLHEXKkSj8JtmJ6N4gDw431DPFOg0ZoJHlNjnG6HVMm/ksQ10m0HJ8WBvwgMe1L50UHPaYZutCRPCw=="],
|
||||||
|
|
||||||
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.60.0", "", { "os": "android", "cpu": "arm" }, "sha512-YdeJKaZckDQL1qa62a1aKq/goyq48aX3yOxaaWqWb4sau4Ee4IiLbamftNLU3zbePky6QsDj6thnSSzHRBjDfA=="],
|
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.64.0", "", { "os": "android", "cpu": "arm64" }, "sha512-ePJMpePgg7fBv+L/hVx1xXRU5/5gd5m0obLA6hPEfLXF3GjpR8idIDbY1dhQYhyz1ms2wdTccSboo6KEd2Oxtg=="],
|
||||||
|
|
||||||
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.60.0", "", { "os": "android", "cpu": "arm64" }, "sha512-7ANS7PpXCfq84xZQ8E5WPs14gwcuPcl+/8TFNXfpSu0CQBXz3cUo2fDpHT8v8HJN+Ut02eacvMAzTnc9s6X4tw=="],
|
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.64.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-U4DMLQd10gJLuoSTLSGbfv3bGjTlUNsScm9Dgb8wwBqmCzidf1pE1pXV4doGNxqwH3KtVng1AGTINA0NvkGLvQ=="],
|
||||||
|
|
||||||
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.60.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-pJsgd9AfplLGBm1fIr25V6V14vMrayhx4uIQvlfH7jWs2SZwSrvi3TfgfJySB8T+hvyEH8K2zXljQiUnkgUnfQ=="],
|
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.64.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-GoRIL48QWm4/TAvjN8pB1nAG+1/uqc9EdnWT9zqHeb6wsmjZtywj8VRe5aGW47Fdb64YtLOsdLqVxOvQuz98Wg=="],
|
||||||
|
|
||||||
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.60.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-Ue1aXHX49ivwflKqGJc7zcd/LeLgbhaTcDCQStgx5x06AXgjEAZmvrlMuIkWd4AL4FHQe6QJ9f33z04Cg448VQ=="],
|
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.64.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-5dFkv4tkg7PxJJGS9/OjrJwjhuHczrd3OQOkRE0wHcLM+ncUnULtzEPWjqGOxTXxZnLWcB91bGiIznx89TVXyQ=="],
|
||||||
|
|
||||||
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.60.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-YCyQzsQtusQw+gNRW9rRTifSO+Dt/+dtCl2NHoDMZqJlRTEZ/Oht9YnuporI9yiTx7+cB+eqzX3MtHHVHGIWhg=="],
|
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.64.0", "", { "os": "linux", "cpu": "arm" }, "sha512-jsBqMLl/uOL5+Kq/+BtK9FrmiNGUbx8SiyZXv+WlUxA45KuwcLu9BfiSIL3I3DBDgWM3yZizDITnTK9BcqNBQg=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.60.0", "", { "os": "linux", "cpu": "arm" }, "sha512-c7dxM2Zksa45Qw16i2iGY3Fti2NirJ38FrsBsKw+qcJ0OtqTsBgKJLF0xV+yLG56UH01Z8WRPgsw31e0MoRoGQ=="],
|
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.64.0", "", { "os": "linux", "cpu": "arm" }, "sha512-1lrj8At/Uuc9GhjrVFBQo0NEjfBrTkzpmtHIGAhNnIXqn1CAyGL+qrztUsXb2GIluJrpl9Q7qRLJOb/NqydacQ=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.60.0", "", { "os": "linux", "cpu": "arm" }, "sha512-ZWALoA42UYqBEP1Tbw9OWURgFGS1nWj2AAvLdY6ZcGx/Gj93qVCBKjcvwXMupZibYwFbi9s/rzqkZseb/6gVtQ=="],
|
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.64.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-HpSQbubwh03mMhAdy2BYtad/fsY8vDFHDAb6bUwuCYg2VD3xCQgn6ArKcO0oZyLCheacKTv4PrF3Mfu5hgoE2g=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.60.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-tpy+1w4p9hN5CicMCxqNy6ymfRtV5ayE573vFNjp1k1TN/qhLFgflveZoE/0++RlkHikBz2vY545NWm/hp7big=="],
|
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.64.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-00QQ0h0Y7u0G69BgiH3+ky2aaq/QvkDL6DYok8htIuJHxybiux5aQ8jwmg8qIk9wha6UagUP2BAwAzbemcJbpg=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.60.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-eDYDXZGhQAXyn6GwtwiX/qcLS0HlOLPJ/+iiIY8RYr+3P8oKBmgKxADLlniL6FtWfE7pPk7IGN9/xvDEvDvFeg=="],
|
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.64.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-2GaimTV6EMW+s5HS0An3oGbQme3BgHswvfVdGk3EB57Xe9+/gyT+Qd7lNVzb3rtir52vbIPzXfaYArzs5b5zcw=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.60.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-nxehly5XYBHUWI9VJX1bqCf9j/B43DaK/aS/T1fcxCpX3PA4Rm9BB54nPD1CKayT8xg6REN1ao+01hSRNgy8OA=="],
|
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.64.0", "", { "os": "linux", "cpu": "none" }, "sha512-H46AtFb9wypjoVwGdlxrm0DsD809NGmtiK9HiyPKTxkSte2YjhC4S+00rOIrwCaxcyPiGid3Y3OMXp5KMAkGZw=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.60.0", "", { "os": "linux", "cpu": "none" }, "sha512-j1qf/NaUfOWQutjeoooNG1Q0zsK0XGmSu1uDLq3cctquRF3j7t9Hxqf/76ehCc5GEUAanth2W4Fa+XT1RFg/nw=="],
|
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.64.0", "", { "os": "linux", "cpu": "none" }, "sha512-HEgsidjjvvyzdg82icYkuFCf7REDV7B9JFwbIMbVwrKLBY0MrXX+bku3POn/hduZ2yW91IyVDUMq0Bf02KwXQw=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.60.0", "", { "os": "linux", "cpu": "none" }, "sha512-YELKPRefQ/q/h3RUmeRfPCUhh2wBvgV1RyZ/F9M9u8cDyXsQW2ojv1DeWQTt466yczDITjZnIOg/s05pk7Ve2A=="],
|
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.64.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-Axvm8qryotmKN00P5w4JapaSjvP2LOSbdbBJiX+2SuHd3QzhW7TUc8skqgw+ahQZ5DmzEYeHCqauvW8f32Ns6Q=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.60.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-JkO3C6Gki7Y6h/MiIkFKvHFOz98/YWvQ4WYbK9DLXACMP2rjULzkeGyAzorJE5S1dzLQGFgeqvN779kSFwoV1g=="],
|
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.64.0", "", { "os": "linux", "cpu": "x64" }, "sha512-cR60vSd7+m+KRZ3GQGfDxWwahW5RMXg0qlGvAluZr0fTUYvw0H9N9AXAF/M/PMqgytyqvVNmBAkJG9l7U30Y1g=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.60.0", "", { "os": "linux", "cpu": "x64" }, "sha512-XjKHdFVCpZZZSWBCKyyqCq65s2AKXykMXkjLoKYODrD+f5toLhlwsMESscu8FbgnJQ4Y/dpR/zdazsahmgBJIA=="],
|
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.64.0", "", { "os": "linux", "cpu": "x64" }, "sha512-2u/aPZ9pEg7HnvZPDsHxUGNnrpr4qaHi+mCgLgpt+LYRzPrS4Px4wPfkIdRdr2GvKnaYyt+XSlto0Vm5sbStTg=="],
|
||||||
|
|
||||||
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.60.0", "", { "os": "linux", "cpu": "x64" }, "sha512-js29ZWIuPhNWzY8NC7KoffEMEeWG105vbmm+8EOJsC+T/jHBiKIJEUF78+F/IrgEWMMP9N0kRND4Pp75+xAhKg=="],
|
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.64.0", "", { "os": "none", "cpu": "arm64" }, "sha512-kfhkGfCdoXLSxEkrhDlJrvBYajGmq+ma4EMc53dsOWTq+rIBOlI0vTBmpZNnM5oH2LY/K/w1HAK+UQEgjgpVUg=="],
|
||||||
|
|
||||||
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.60.0", "", { "os": "none", "cpu": "arm64" }, "sha512-H+PUITKHk04stFpWj3x3Kg08Afp/bcXSBi0EhasR5a0Vw7StXHTzdl655PUI0fB4qdh2Wsu6Dsi+3ACxPoyQnA=="],
|
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.64.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-r/cNKBFieONoVu2bb1KkVouq9W+edDUgHumXJGphCRRj+U0xaD4nanrw8ZOqo0IsutPkEM4vCcGBpak6x5aXMg=="],
|
||||||
|
|
||||||
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.60.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-WA/yc7f7ZfCefBXVzNHn1Ztulb1EFwNBb4jMZ6pjML0zz6pHujlF3Q3jySluz3XHl/GNeMTntG1seUBWVMlMag=="],
|
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.64.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-tUw0xUUwEFVZbpJoeCblkv8SJA4Xz3CdXCJbAnBsiNLyxDrk2tLcxEAS6M73Q7hHHDg3OtwI8vZVK3t5RJt4Gw=="],
|
||||||
|
|
||||||
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.60.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-33YxL1sqwYNZXtn3MD/4dno6s0xeedXOJlT1WohkVD565WvohClZUr7vwKdAk954n4xiEWJkewiCr+zLeq7AeA=="],
|
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.64.0", "", { "os": "win32", "cpu": "x64" }, "sha512-9CBR+LO0JVST87fNTzzNxS5I29jIUO5gxT9i9+M3SDHHALElj9sY1Prf12tad3vIRC6OD7Ehtvvh+sn13vSwHw=="],
|
||||||
|
|
||||||
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.60.0", "", { "os": "win32", "cpu": "x64" }, "sha512-JOro4ZcfBLamJCyfURQmOQByoorgOdx3ZjAkSqnb/CyG/i+lN3KoV5LAgk5ZAW6DPq7/Cx7n23f8DuTWXTWgyQ=="],
|
|
||||||
|
|
||||||
"@tsconfig/bun": ["@tsconfig/bun@1.0.10", "", {}, "sha512-5AV5YknQjNyoYzZ/8NG0dawqew/wH+x7ANiCfCIn29qo0cdbd1EryvFD1k5NSZWLBMOI/fGqMIaxi58GPIP9Cg=="],
|
"@tsconfig/bun": ["@tsconfig/bun@1.0.10", "", {}, "sha512-5AV5YknQjNyoYzZ/8NG0dawqew/wH+x7ANiCfCIn29qo0cdbd1EryvFD1k5NSZWLBMOI/fGqMIaxi58GPIP9Cg=="],
|
||||||
|
|
||||||
"@types/bun": ["@types/bun@1.3.12", "", { "dependencies": { "bun-types": "1.3.12" } }, "sha512-DBv81elK+/VSwXHDlnH3Qduw+KxkTIWi7TXkAeh24zpi5l0B2kUg9Ga3tb4nJaPcOFswflgi/yAvMVBPrxMB+A=="],
|
"@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="],
|
||||||
|
|
||||||
"@types/node": ["@types/node@20.19.37", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-8kzdPJ3FsNsVIurqBs7oodNnCEVbni9yUEkaHbgptDACOPW04jimGagZ51E6+lXUwJjgnBw+hyko/lkFWCldqw=="],
|
"@types/node": ["@types/node@20.19.37", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-8kzdPJ3FsNsVIurqBs7oodNnCEVbni9yUEkaHbgptDACOPW04jimGagZ51E6+lXUwJjgnBw+hyko/lkFWCldqw=="],
|
||||||
|
|
||||||
@@ -139,15 +136,13 @@
|
|||||||
|
|
||||||
"@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20260410.1", "", { "os": "win32", "cpu": "x64" }, "sha512-dMFT4tdHBe2vVA2WPQMjorT+fzCURRtillevQzz8/bwCEz2uXSnpu4oLRLS5045ppGE0wCFELE+Hq5z2oRddDw=="],
|
"@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20260410.1", "", { "os": "win32", "cpu": "x64" }, "sha512-dMFT4tdHBe2vVA2WPQMjorT+fzCURRtillevQzz8/bwCEz2uXSnpu4oLRLS5045ppGE0wCFELE+Hq5z2oRddDw=="],
|
||||||
|
|
||||||
"bun-types": ["bun-types@1.3.12", "", { "dependencies": { "@types/node": "*" } }, "sha512-HqOLj5PoFajAQciOMRiIZGNoKxDJSr6qigAttOX40vJuSp6DN/CxWp9s3C1Xwm4oH7ybueITwiaOcWXoYVoRkA=="],
|
"bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="],
|
||||||
|
|
||||||
"oxfmt": ["oxfmt@0.45.0", "", { "dependencies": { "tinypool": "2.1.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.45.0", "@oxfmt/binding-android-arm64": "0.45.0", "@oxfmt/binding-darwin-arm64": "0.45.0", "@oxfmt/binding-darwin-x64": "0.45.0", "@oxfmt/binding-freebsd-x64": "0.45.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.45.0", "@oxfmt/binding-linux-arm-musleabihf": "0.45.0", "@oxfmt/binding-linux-arm64-gnu": "0.45.0", "@oxfmt/binding-linux-arm64-musl": "0.45.0", "@oxfmt/binding-linux-ppc64-gnu": "0.45.0", "@oxfmt/binding-linux-riscv64-gnu": "0.45.0", "@oxfmt/binding-linux-riscv64-musl": "0.45.0", "@oxfmt/binding-linux-s390x-gnu": "0.45.0", "@oxfmt/binding-linux-x64-gnu": "0.45.0", "@oxfmt/binding-linux-x64-musl": "0.45.0", "@oxfmt/binding-openharmony-arm64": "0.45.0", "@oxfmt/binding-win32-arm64-msvc": "0.45.0", "@oxfmt/binding-win32-ia32-msvc": "0.45.0", "@oxfmt/binding-win32-x64-msvc": "0.45.0" }, "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-0o/COoN9fY50bjVeM7PQsNgbhndKurBIeTIcspW033OumksjJJmIVDKjAk5HMwU/GHTxSOdGDdhJ6BRzGPmsHg=="],
|
"oxfmt": ["oxfmt@0.49.0", "", { "dependencies": { "tinypool": "2.1.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.49.0", "@oxfmt/binding-android-arm64": "0.49.0", "@oxfmt/binding-darwin-arm64": "0.49.0", "@oxfmt/binding-darwin-x64": "0.49.0", "@oxfmt/binding-freebsd-x64": "0.49.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.49.0", "@oxfmt/binding-linux-arm-musleabihf": "0.49.0", "@oxfmt/binding-linux-arm64-gnu": "0.49.0", "@oxfmt/binding-linux-arm64-musl": "0.49.0", "@oxfmt/binding-linux-ppc64-gnu": "0.49.0", "@oxfmt/binding-linux-riscv64-gnu": "0.49.0", "@oxfmt/binding-linux-riscv64-musl": "0.49.0", "@oxfmt/binding-linux-s390x-gnu": "0.49.0", "@oxfmt/binding-linux-x64-gnu": "0.49.0", "@oxfmt/binding-linux-x64-musl": "0.49.0", "@oxfmt/binding-openharmony-arm64": "0.49.0", "@oxfmt/binding-win32-arm64-msvc": "0.49.0", "@oxfmt/binding-win32-ia32-msvc": "0.49.0", "@oxfmt/binding-win32-x64-msvc": "0.49.0" }, "peerDependencies": { "svelte": "^5.0.0" }, "optionalPeers": ["svelte"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-IAHFMdlJSWe+oAr65dx22UvjCtV9DBMisAuLnKpDqMQrctzCkGnj3QRwNHm0d+uwSWPalsDF8ZYLz9rh6nH2IQ=="],
|
||||||
|
|
||||||
"oxlint": ["oxlint@1.60.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.60.0", "@oxlint/binding-android-arm64": "1.60.0", "@oxlint/binding-darwin-arm64": "1.60.0", "@oxlint/binding-darwin-x64": "1.60.0", "@oxlint/binding-freebsd-x64": "1.60.0", "@oxlint/binding-linux-arm-gnueabihf": "1.60.0", "@oxlint/binding-linux-arm-musleabihf": "1.60.0", "@oxlint/binding-linux-arm64-gnu": "1.60.0", "@oxlint/binding-linux-arm64-musl": "1.60.0", "@oxlint/binding-linux-ppc64-gnu": "1.60.0", "@oxlint/binding-linux-riscv64-gnu": "1.60.0", "@oxlint/binding-linux-riscv64-musl": "1.60.0", "@oxlint/binding-linux-s390x-gnu": "1.60.0", "@oxlint/binding-linux-x64-gnu": "1.60.0", "@oxlint/binding-linux-x64-musl": "1.60.0", "@oxlint/binding-openharmony-arm64": "1.60.0", "@oxlint/binding-win32-arm64-msvc": "1.60.0", "@oxlint/binding-win32-ia32-msvc": "1.60.0", "@oxlint/binding-win32-x64-msvc": "1.60.0" }, "peerDependencies": { "oxlint-tsgolint": ">=0.18.0" }, "optionalPeers": ["oxlint-tsgolint"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-tnRzTWiWJ9pg3ftRWnD0+Oqh78L6ZSwcEudvCZaER0PIqiAnNyXj5N1dPwjmNpDalkKS9m/WMLN1CTPUBPmsgw=="],
|
"oxlint": ["oxlint@1.64.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.64.0", "@oxlint/binding-android-arm64": "1.64.0", "@oxlint/binding-darwin-arm64": "1.64.0", "@oxlint/binding-darwin-x64": "1.64.0", "@oxlint/binding-freebsd-x64": "1.64.0", "@oxlint/binding-linux-arm-gnueabihf": "1.64.0", "@oxlint/binding-linux-arm-musleabihf": "1.64.0", "@oxlint/binding-linux-arm64-gnu": "1.64.0", "@oxlint/binding-linux-arm64-musl": "1.64.0", "@oxlint/binding-linux-ppc64-gnu": "1.64.0", "@oxlint/binding-linux-riscv64-gnu": "1.64.0", "@oxlint/binding-linux-riscv64-musl": "1.64.0", "@oxlint/binding-linux-s390x-gnu": "1.64.0", "@oxlint/binding-linux-x64-gnu": "1.64.0", "@oxlint/binding-linux-x64-musl": "1.64.0", "@oxlint/binding-openharmony-arm64": "1.64.0", "@oxlint/binding-win32-arm64-msvc": "1.64.0", "@oxlint/binding-win32-ia32-msvc": "1.64.0", "@oxlint/binding-win32-x64-msvc": "1.64.0" }, "peerDependencies": { "oxlint-tsgolint": ">=0.22.1" }, "optionalPeers": ["oxlint-tsgolint"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-Star3SNpWPeWFPw7kRXIhXUSn6fdiAl25q15CQzH/9WaOtG6e9CWTc25vNZOCr4PE1yEP1GtKJKIKglhj3OmEQ=="],
|
||||||
|
|
||||||
"oxlint-tsgolint": ["oxlint-tsgolint@0.20.0", "", { "optionalDependencies": { "@oxlint-tsgolint/darwin-arm64": "0.20.0", "@oxlint-tsgolint/darwin-x64": "0.20.0", "@oxlint-tsgolint/linux-arm64": "0.20.0", "@oxlint-tsgolint/linux-x64": "0.20.0", "@oxlint-tsgolint/win32-arm64": "0.20.0", "@oxlint-tsgolint/win32-x64": "0.20.0" }, "bin": { "tsgolint": "bin/tsgolint.js" } }, "sha512-/Uc9TQyN1l8w9QNvXtVHYtz+SzDJHKpb5X0UnHodl0BVzijUPk0LPlDOHAvogd1UI+iy9ZSF6gQxEqfzUxCULQ=="],
|
"oxlint-tsgolint": ["oxlint-tsgolint@0.22.1", "", { "optionalDependencies": { "@oxlint-tsgolint/darwin-arm64": "0.22.1", "@oxlint-tsgolint/darwin-x64": "0.22.1", "@oxlint-tsgolint/linux-arm64": "0.22.1", "@oxlint-tsgolint/linux-x64": "0.22.1", "@oxlint-tsgolint/win32-arm64": "0.22.1", "@oxlint-tsgolint/win32-x64": "0.22.1" }, "bin": { "tsgolint": "bin/tsgolint.js" } }, "sha512-YUSGSLUnoolsu8gxISEDio3q1rtsCozwfOzASUn3DT2mR2EeQ93uEEnen7s+6LpF+lyTQFln1pQfqwBh/fsVEg=="],
|
||||||
|
|
||||||
"semver": ["semver@7.7.4", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="],
|
|
||||||
|
|
||||||
"tinypool": ["tinypool@2.1.0", "", {}, "sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw=="],
|
"tinypool": ["tinypool@2.1.0", "", {}, "sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw=="],
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
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`,
|
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
|
## Quick Start
|
||||||
|
|
||||||
@@ -24,19 +28,27 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
- run: supabase init
|
- run: supabase init
|
||||||
- run: supabase db start
|
- run: supabase db start
|
||||||
```
|
```
|
||||||
|
|
||||||
To pin a specific CLI version:
|
To pin a fixed npm-published CLI version:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: supabase/setup-cli@v2
|
- uses: supabase/setup-cli@v3
|
||||||
with:
|
with:
|
||||||
version: 2.84.2
|
version: 2.84.2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To test the current beta release:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: supabase/setup-cli@v3
|
||||||
|
with:
|
||||||
|
version: beta
|
||||||
|
```
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
- **Source Code**: <https://github.com/supabase/setup-cli>
|
- **Source Code**: <https://github.com/supabase/setup-cli>
|
||||||
|
|||||||
13
package.json
13
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-cli",
|
"name": "setup-cli",
|
||||||
"version": "2.0.0",
|
"version": "3.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Supabase CLI GitHub Action",
|
"description": "Supabase CLI GitHub Action",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -24,16 +24,15 @@
|
|||||||
"typecheck": "bun x tsgo -p tsconfig.json --noEmit"
|
"typecheck": "bun x tsgo -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^3.0.0",
|
"@actions/core": "^3.0.1"
|
||||||
"@actions/tool-cache": "^4.0.0"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/bun": "^1.0.10",
|
"@tsconfig/bun": "^1.0.10",
|
||||||
"@types/bun": "^1.3.12",
|
"@types/bun": "^1.3.14",
|
||||||
"@typescript/native-preview": "^7.0.0-dev.20260410.1",
|
"@typescript/native-preview": "^7.0.0-dev.20260410.1",
|
||||||
"oxfmt": "^0.45.0",
|
"oxfmt": "^0.49.0",
|
||||||
"oxlint": "^1.60.0",
|
"oxlint": "^1.64.0",
|
||||||
"oxlint-tsgolint": "^0.20.0"
|
"oxlint-tsgolint": "^0.22.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"bun": ">=1.3.10"
|
"bun": ">=1.3.10"
|
||||||
|
|||||||
560
src/main.test.ts
560
src/main.test.ts
@@ -1,22 +1,29 @@
|
|||||||
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import process from "node:process";
|
import process from "node:process";
|
||||||
import { fileURLToPath } from "node:url";
|
|
||||||
import { afterEach, expect, mock, spyOn, test } from "bun:test";
|
import { afterEach, expect, mock, spyOn, test } from "bun:test";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as tc from "@actions/tool-cache";
|
|
||||||
|
|
||||||
const repo = path.dirname(path.dirname(fileURLToPath(import.meta.url)));
|
|
||||||
const defaultEntrypoint = fileURLToPath(new URL("./main.ts", import.meta.url));
|
|
||||||
const CLI_CONFIG_REGISTRY = "SUPABASE_INTERNAL_IMAGE_REGISTRY";
|
const CLI_CONFIG_REGISTRY = "SUPABASE_INTERNAL_IMAGE_REGISTRY";
|
||||||
|
const originalPath = process.env.PATH;
|
||||||
|
const originalRunnerTemp = process.env.RUNNER_TEMP;
|
||||||
const originalWorkspace = process.env.GITHUB_WORKSPACE;
|
const originalWorkspace = process.env.GITHUB_WORKSPACE;
|
||||||
const tempDirs = new Set<string>();
|
const tempDirs = new Set<string>();
|
||||||
let mainModule: typeof import("./main.ts") | null = null;
|
let mainModule: typeof import("./main.ts") | null = null;
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
mock.restore();
|
mock.restore();
|
||||||
|
process.env.PATH = originalPath;
|
||||||
|
process.env.RUNNER_TEMP = originalRunnerTemp;
|
||||||
process.env.GITHUB_WORKSPACE = originalWorkspace;
|
process.env.GITHUB_WORKSPACE = originalWorkspace;
|
||||||
|
delete process.env.FAKE_CLI_VERSION;
|
||||||
|
delete process.env.FAKE_NPM_BIN;
|
||||||
|
delete process.env.FAKE_NPM_INTEGRITY;
|
||||||
|
delete process.env.FAKE_NPM_LOG;
|
||||||
|
delete process.env.FAKE_NPM_PACKAGE_VERSION;
|
||||||
|
delete process.env.FAKE_NPM_POSTINSTALL;
|
||||||
|
delete process.env.SUPABASE_SETUP_CLI_NPM;
|
||||||
|
|
||||||
for (const dir of tempDirs) {
|
for (const dir of tempDirs) {
|
||||||
rmSync(dir, { force: true, recursive: true });
|
rmSync(dir, { force: true, recursive: true });
|
||||||
@@ -24,32 +31,14 @@ afterEach(() => {
|
|||||||
tempDirs.clear();
|
tempDirs.clear();
|
||||||
});
|
});
|
||||||
|
|
||||||
function createFakeCli(versionOutput: string): string {
|
function createTempDir(prefix: string): string {
|
||||||
const dir = mkdtempSync(path.join(os.tmpdir(), "setup-cli-"));
|
const dir = mkdtempSync(path.join(os.tmpdir(), prefix));
|
||||||
tempDirs.add(dir);
|
tempDirs.add(dir);
|
||||||
|
|
||||||
if (process.platform === "win32") {
|
|
||||||
writeFileSync(
|
|
||||||
path.join(dir, "supabase.cmd"),
|
|
||||||
versionOutput ? `@echo off\r\necho ${versionOutput}\r\n` : "@echo off\r\n",
|
|
||||||
);
|
|
||||||
return dir;
|
|
||||||
}
|
|
||||||
|
|
||||||
const escapedOutput = versionOutput.replaceAll("'", "'\"'\"'");
|
|
||||||
writeFileSync(
|
|
||||||
path.join(dir, "supabase"),
|
|
||||||
versionOutput
|
|
||||||
? `#!/usr/bin/env bash\nprintf '%s\\n' '${escapedOutput}'\n`
|
|
||||||
: "#!/usr/bin/env bash\n",
|
|
||||||
);
|
|
||||||
Bun.spawnSync(["chmod", "+x", path.join(dir, "supabase")]);
|
|
||||||
return dir;
|
return dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createWorkspace(files: Record<string, string>): string {
|
function createWorkspace(files: Record<string, string>): string {
|
||||||
const dir = mkdtempSync(path.join(os.tmpdir(), "setup-cli-workspace-"));
|
const dir = createTempDir("setup-cli-workspace-");
|
||||||
tempDirs.add(dir);
|
|
||||||
|
|
||||||
for (const [relativePath, content] of Object.entries(files)) {
|
for (const [relativePath, content] of Object.entries(files)) {
|
||||||
const filePath = path.join(dir, relativePath);
|
const filePath = path.join(dir, relativePath);
|
||||||
@@ -65,6 +54,7 @@ function createBunLock(
|
|||||||
options: {
|
options: {
|
||||||
includeDependency?: boolean;
|
includeDependency?: boolean;
|
||||||
includePackageEntry?: boolean;
|
includePackageEntry?: boolean;
|
||||||
|
integrity?: string;
|
||||||
useDevDependency?: boolean;
|
useDevDependency?: boolean;
|
||||||
} = {},
|
} = {},
|
||||||
): string {
|
): string {
|
||||||
@@ -90,7 +80,7 @@ ${
|
|||||||
"supabase@${version}",
|
"supabase@${version}",
|
||||||
"",
|
"",
|
||||||
{},
|
{},
|
||||||
"sha512-test"
|
"${options.integrity ?? "sha512-bun"}"
|
||||||
]`
|
]`
|
||||||
: ""
|
: ""
|
||||||
}
|
}
|
||||||
@@ -101,7 +91,12 @@ ${
|
|||||||
|
|
||||||
function createPnpmLock(
|
function createPnpmLock(
|
||||||
version: string,
|
version: string,
|
||||||
options: { asString?: boolean; includeVersion?: boolean; useDevDependency?: boolean } = {},
|
options: {
|
||||||
|
asString?: boolean;
|
||||||
|
includeVersion?: boolean;
|
||||||
|
integrity?: string;
|
||||||
|
useDevDependency?: boolean;
|
||||||
|
} = {},
|
||||||
): string {
|
): string {
|
||||||
const dependencyKey = options.useDevDependency ? "devDependencies" : "dependencies";
|
const dependencyKey = options.useDevDependency ? "devDependencies" : "dependencies";
|
||||||
|
|
||||||
@@ -119,11 +114,11 @@ ${options.includeVersion === false ? "" : ` version: ${version}`}`
|
|||||||
packages:
|
packages:
|
||||||
supabase@${version}:
|
supabase@${version}:
|
||||||
resolution:
|
resolution:
|
||||||
integrity: sha512-test
|
integrity: ${options.integrity ?? "sha512-pnpm"}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function createPackageLock(version: string): string {
|
function createPackageLock(version: string, integrity = "sha512-package-lock"): string {
|
||||||
return JSON.stringify(
|
return JSON.stringify(
|
||||||
{
|
{
|
||||||
name: "app",
|
name: "app",
|
||||||
@@ -135,6 +130,7 @@ function createPackageLock(version: string): string {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
"node_modules/supabase": {
|
"node_modules/supabase": {
|
||||||
|
integrity,
|
||||||
version,
|
version,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -144,18 +140,139 @@ function createPackageLock(version: string): string {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createActionSpies(inputVersion: string, cliDir: string, expectedUrlFragment: string) {
|
function createFakeNpm(): string {
|
||||||
|
const root = createTempDir("setup-cli-fake-npm-");
|
||||||
|
const binDir = path.join(root, "bin");
|
||||||
|
const scriptPath = path.join(root, "fake-npm.js");
|
||||||
|
mkdirSync(binDir, { recursive: true });
|
||||||
|
writeFileSync(
|
||||||
|
scriptPath,
|
||||||
|
`import { appendFileSync, mkdirSync, writeFileSync } from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
|
const args = process.argv.slice(2);
|
||||||
|
appendFileSync(process.env.FAKE_NPM_LOG, JSON.stringify(args) + "\\n");
|
||||||
|
|
||||||
|
if (args[0] === "view") {
|
||||||
|
const bin =
|
||||||
|
process.env.FAKE_NPM_BIN === "missing"
|
||||||
|
? undefined
|
||||||
|
: { supabase: process.env.FAKE_NPM_BIN ?? "dist/supabase.js" };
|
||||||
|
const scripts = process.env.FAKE_NPM_POSTINSTALL
|
||||||
|
? { postinstall: process.env.FAKE_NPM_POSTINSTALL }
|
||||||
|
: {};
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
JSON.stringify({
|
||||||
|
version: process.env.FAKE_NPM_PACKAGE_VERSION ?? "2.101.0",
|
||||||
|
bin,
|
||||||
|
scripts,
|
||||||
|
"dist.integrity": process.env.FAKE_NPM_INTEGRITY ?? "sha512-test",
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
process.exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (args[0] !== "install") {
|
||||||
|
console.error("Unexpected npm command: " + args.join(" "));
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const prefixIndex = args.indexOf("--prefix");
|
||||||
|
const prefix = prefixIndex === -1 ? undefined : args[prefixIndex + 1];
|
||||||
|
if (!prefix) {
|
||||||
|
console.error("Missing --prefix");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const binDir = path.join(prefix, "node_modules", ".bin");
|
||||||
|
mkdirSync(binDir, { recursive: true });
|
||||||
|
|
||||||
|
if (process.platform === "win32") {
|
||||||
|
writeFileSync(
|
||||||
|
path.join(binDir, "supabase.cmd"),
|
||||||
|
process.env.FAKE_CLI_VERSION ? "@echo off\\r\\necho " + process.env.FAKE_CLI_VERSION + "\\r\\n" : "@echo off\\r\\n",
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
writeFileSync(
|
||||||
|
path.join(binDir, "supabase"),
|
||||||
|
process.env.FAKE_CLI_VERSION
|
||||||
|
? "#!/usr/bin/env bash\\nprintf '%s\\\\n' '" + process.env.FAKE_CLI_VERSION.replaceAll("'", "'\\\\''") + "'\\n"
|
||||||
|
: "#!/usr/bin/env bash\\n",
|
||||||
|
{ mode: 0o755 },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
`,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (process.platform === "win32") {
|
||||||
|
writeFileSync(
|
||||||
|
path.join(binDir, "npm.cmd"),
|
||||||
|
`@echo off\r\n"${process.execPath}" "${scriptPath}" %*\r\n`,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
writeFileSync(
|
||||||
|
path.join(binDir, "npm"),
|
||||||
|
`#!/usr/bin/env bash\nexec "${process.execPath}" "${scriptPath}" "$@"\n`,
|
||||||
|
{ mode: 0o755 },
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return binDir;
|
||||||
|
}
|
||||||
|
|
||||||
|
function installFakeNpm(
|
||||||
|
versionOutput = "supabase 2.101.0",
|
||||||
|
options: {
|
||||||
|
bin?: string;
|
||||||
|
integrity?: string;
|
||||||
|
packageVersion?: string;
|
||||||
|
postinstall?: string;
|
||||||
|
} = {},
|
||||||
|
): string {
|
||||||
|
const binDir = createFakeNpm();
|
||||||
|
const logPath = path.join(createTempDir("setup-cli-fake-npm-log-"), "npm.log");
|
||||||
|
writeFileSync(logPath, "");
|
||||||
|
process.env.FAKE_CLI_VERSION = versionOutput;
|
||||||
|
process.env.FAKE_NPM_BIN = options.bin ?? "dist/supabase.js";
|
||||||
|
process.env.FAKE_NPM_INTEGRITY = options.integrity ?? "sha512-test";
|
||||||
|
process.env.FAKE_NPM_LOG = logPath;
|
||||||
|
process.env.FAKE_NPM_PACKAGE_VERSION =
|
||||||
|
options.packageVersion ??
|
||||||
|
versionOutput.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/)?.[0] ??
|
||||||
|
"2.101.0";
|
||||||
|
if (options.postinstall) {
|
||||||
|
process.env.FAKE_NPM_POSTINSTALL = options.postinstall;
|
||||||
|
}
|
||||||
|
process.env.PATH = `${binDir}${path.delimiter}${originalPath ?? ""}`;
|
||||||
|
process.env.RUNNER_TEMP = createTempDir("setup-cli-runner-temp-");
|
||||||
|
process.env.SUPABASE_SETUP_CLI_NPM = path.join(
|
||||||
|
binDir,
|
||||||
|
process.platform === "win32" ? "npm.cmd" : "npm",
|
||||||
|
);
|
||||||
|
|
||||||
|
return logPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
function readNpmCalls(logPath: string): string[][] {
|
||||||
|
return readFileSync(logPath, "utf8")
|
||||||
|
.trim()
|
||||||
|
.split("\n")
|
||||||
|
.filter(Boolean)
|
||||||
|
.map((line) => JSON.parse(line) as string[]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function viewMetadataCall(spec: string): string[] {
|
||||||
|
return ["view", spec, "version", "bin", "scripts", "dist.integrity", "--json"];
|
||||||
|
}
|
||||||
|
|
||||||
|
function createActionSpies(inputVersion: string) {
|
||||||
return {
|
return {
|
||||||
getInput: spyOn(core, "getInput").mockReturnValue(inputVersion),
|
|
||||||
setOutput: spyOn(core, "setOutput").mockImplementation(() => {}),
|
|
||||||
addPath: spyOn(core, "addPath").mockImplementation(() => {}),
|
addPath: spyOn(core, "addPath").mockImplementation(() => {}),
|
||||||
exportVariable: spyOn(core, "exportVariable").mockImplementation(() => {}),
|
exportVariable: spyOn(core, "exportVariable").mockImplementation(() => {}),
|
||||||
|
getInput: spyOn(core, "getInput").mockReturnValue(inputVersion),
|
||||||
setFailed: spyOn(core, "setFailed").mockImplementation(() => {}),
|
setFailed: spyOn(core, "setFailed").mockImplementation(() => {}),
|
||||||
downloadTool: spyOn(tc, "downloadTool").mockImplementation(async (url: string) => {
|
setOutput: spyOn(core, "setOutput").mockImplementation(() => {}),
|
||||||
expect(url).toContain(expectedUrlFragment);
|
|
||||||
return path.join(os.tmpdir(), "supabase-cli.tar.gz");
|
|
||||||
}),
|
|
||||||
extractTar: spyOn(tc, "extractTar").mockImplementation(async () => cliDir),
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,100 +284,69 @@ async function getMainModule(): Promise<typeof import("./main.ts")> {
|
|||||||
return mainModule;
|
return mainModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
test("awaits the action entrypoint with omitted version and latest fallback", async () => {
|
test("uses an explicit npm package version when provided", async () => {
|
||||||
process.env.GITHUB_WORKSPACE = repo;
|
const { resolvePackage } = await getMainModule();
|
||||||
const cliDir = createFakeCli("supabase 2.84.2");
|
|
||||||
let startDownload!: () => void;
|
|
||||||
let finishDownload!: () => void;
|
|
||||||
const downloadStarted = new Promise<void>((resolve) => {
|
|
||||||
startDownload = resolve;
|
|
||||||
});
|
|
||||||
const downloadFinished = new Promise<string>((resolve) => {
|
|
||||||
finishDownload = () => resolve(path.join(os.tmpdir(), "supabase-cli.tar.gz"));
|
|
||||||
});
|
|
||||||
const spies = {
|
|
||||||
getInput: spyOn(core, "getInput").mockReturnValue(""),
|
|
||||||
setOutput: spyOn(core, "setOutput").mockImplementation(() => {}),
|
|
||||||
addPath: spyOn(core, "addPath").mockImplementation(() => {}),
|
|
||||||
exportVariable: spyOn(core, "exportVariable").mockImplementation(() => {}),
|
|
||||||
setFailed: spyOn(core, "setFailed").mockImplementation(() => {}),
|
|
||||||
downloadTool: spyOn(tc, "downloadTool").mockImplementation(async (url: string) => {
|
|
||||||
expect(url).toContain("/latest/download/");
|
|
||||||
startDownload();
|
|
||||||
return downloadFinished;
|
|
||||||
}),
|
|
||||||
extractTar: spyOn(tc, "extractTar").mockImplementation(async () => cliDir),
|
|
||||||
};
|
|
||||||
const originalArgv1 = process.argv[1];
|
|
||||||
process.argv[1] = defaultEntrypoint;
|
|
||||||
|
|
||||||
try {
|
expect(resolvePackage("v2.101.0")).toEqual({
|
||||||
let importSettled = false;
|
spec: "supabase@2.101.0",
|
||||||
const entrypoint = import(`./main.ts?entrypoint=${Date.now()}`).finally(() => {
|
version: "2.101.0",
|
||||||
importSettled = true;
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
await downloadStarted;
|
test("uses an explicit npm dist-tag when provided", async () => {
|
||||||
await Bun.sleep(0);
|
const { resolvePackage } = await getMainModule();
|
||||||
|
|
||||||
expect(importSettled).toBe(false);
|
expect(resolvePackage("beta")).toEqual({
|
||||||
|
spec: "supabase@beta",
|
||||||
finishDownload();
|
version: "beta",
|
||||||
await entrypoint;
|
});
|
||||||
} finally {
|
|
||||||
process.argv[1] = originalArgv1 ?? "";
|
|
||||||
}
|
|
||||||
|
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.84.2");
|
|
||||||
expect(spies.addPath).toHaveBeenCalledWith(cliDir);
|
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("uses the root bun.lock version when version is omitted", async () => {
|
test("rejects unsupported npm package selectors", async () => {
|
||||||
|
const { resolvePackage } = await getMainModule();
|
||||||
|
|
||||||
|
expect(() => resolvePackage("hotfix")).toThrow(
|
||||||
|
'Unsupported Supabase CLI version "hotfix". Use latest, beta, or a fixed npm package version like 2.101.0.',
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
test("uses the root bun.lock resolution when version is omitted", async () => {
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"bun.lock": createBunLock("2.41.0"),
|
"bun.lock": createBunLock("2.41.0", { integrity: "sha512-bun-lock" }),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.41.0");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.41.0/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
integrity: "sha512-bun-lock",
|
||||||
expect(spies.downloadTool).not.toHaveBeenCalledWith(expect.stringContaining("/latest/download/"));
|
spec: "supabase@2.41.0",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.41.0");
|
version: "2.41.0",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
});
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("uses the root pnpm-lock.yaml version when version is omitted", async () => {
|
test("uses the root pnpm-lock.yaml resolution when version is omitted", async () => {
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"pnpm-lock.yaml": createPnpmLock("2.42.0"),
|
"pnpm-lock.yaml": createPnpmLock("2.42.0", { integrity: "sha512-pnpm-lock" }),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.42.0");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.42.0/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
integrity: "sha512-pnpm-lock",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.42.0");
|
spec: "supabase@2.42.0",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
version: "2.42.0",
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test("uses the root package-lock.json version when version is omitted", async () => {
|
test("uses the root package-lock.json resolution when version is omitted", async () => {
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"package-lock.json": createPackageLock("2.43.0"),
|
"package-lock.json": createPackageLock("2.43.0", "sha512-package-lock"),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.43.0");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.43.0/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
integrity: "sha512-package-lock",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.43.0");
|
spec: "supabase@2.43.0",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
version: "2.43.0",
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test("falls through malformed lockfiles and uses the next supported root lockfile", async () => {
|
test("falls through malformed lockfiles and uses the next supported root lockfile", async () => {
|
||||||
@@ -268,58 +354,47 @@ test("falls through malformed lockfiles and uses the next supported root lockfil
|
|||||||
"bun.lock": "{ not valid",
|
"bun.lock": "{ not valid",
|
||||||
"package-lock.json": createPackageLock("2.44.0"),
|
"package-lock.json": createPackageLock("2.44.0"),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.44.0");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.44.0/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
integrity: "sha512-package-lock",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.44.0");
|
spec: "supabase@2.44.0",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
version: "2.44.0",
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test("falls back to latest when version is omitted and no supported root lockfile is present", async () => {
|
test("falls back to latest when version is omitted and no supported root lockfile is present", async () => {
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"README.md": "# app\n",
|
"README.md": "# app\n",
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.84.2");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/latest/download/");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
spec: "supabase@latest",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.84.2");
|
version: "latest",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
});
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("falls back to latest when version is omitted and no workspace is available", async () => {
|
test("falls back to latest when version is omitted and no workspace is available", async () => {
|
||||||
delete process.env.GITHUB_WORKSPACE;
|
delete process.env.GITHUB_WORKSPACE;
|
||||||
const cliDir = createFakeCli("supabase 2.84.2");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/latest/download/");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
spec: "supabase@latest",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.84.2");
|
version: "latest",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
});
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("uses the declared bun.lock version when the resolved package entry is missing", async () => {
|
test("uses the declared bun.lock version when the resolved package entry is missing", async () => {
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"bun.lock": createBunLock("2.44.1", { includePackageEntry: false, useDevDependency: true }),
|
"bun.lock": createBunLock("2.44.1", { includePackageEntry: false, useDevDependency: true }),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.44.1");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.44.1/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
spec: "supabase@2.44.1",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.44.1");
|
version: "2.44.1",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
});
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("falls through bun.lock without supabase and uses a pnpm string dependency version", async () => {
|
test("falls through bun.lock without supabase and uses a pnpm string dependency version", async () => {
|
||||||
@@ -327,86 +402,183 @@ test("falls through bun.lock without supabase and uses a pnpm string dependency
|
|||||||
"bun.lock": createBunLock("2.47.0", { includeDependency: false }),
|
"bun.lock": createBunLock("2.47.0", { includeDependency: false }),
|
||||||
"pnpm-lock.yaml": createPnpmLock("2.47.0", { asString: true }),
|
"pnpm-lock.yaml": createPnpmLock("2.47.0", { asString: true }),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.47.0");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.47.0/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
expect(resolvePackage("")).toEqual({
|
||||||
|
integrity: "sha512-pnpm",
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.47.0");
|
spec: "supabase@2.47.0",
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
version: "2.47.0",
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("falls through malformed pnpm lockfiles and uses the next supported root lockfile", async () => {
|
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
|
||||||
"pnpm-lock.yaml": "not: [valid",
|
|
||||||
"package-lock.json": createPackageLock("2.48.0"),
|
|
||||||
});
|
|
||||||
const cliDir = createFakeCli("supabase 2.48.0");
|
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.48.0/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
|
||||||
|
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.48.0");
|
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
|
||||||
|
|
||||||
test("falls through unreadable bun.lock paths and malformed package-lock files to latest", async () => {
|
|
||||||
const workspace = createWorkspace({
|
|
||||||
"package-lock.json": "{ invalid",
|
|
||||||
});
|
|
||||||
mkdirSync(path.join(workspace, "bun.lock"), { recursive: true });
|
|
||||||
process.env.GITHUB_WORKSPACE = workspace;
|
|
||||||
const cliDir = createFakeCli("supabase 2.84.2");
|
|
||||||
const spies = createActionSpies("", cliDir, "/latest/download/");
|
|
||||||
const { run } = await getMainModule();
|
|
||||||
|
|
||||||
await run();
|
|
||||||
|
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.84.2");
|
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test("falls back to latest when a pnpm dependency entry has no concrete version", async () => {
|
test("falls back to latest when a pnpm dependency entry has no concrete version", async () => {
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"pnpm-lock.yaml": createPnpmLock("2.49.0", { includeVersion: false }),
|
"pnpm-lock.yaml": createPnpmLock("2.49.0", { includeVersion: false }),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 2.84.2");
|
const { resolvePackage } = await getMainModule();
|
||||||
const spies = createActionSpies("", cliDir, "/latest/download/");
|
|
||||||
|
expect(resolvePackage("")).toEqual({
|
||||||
|
spec: "supabase@latest",
|
||||||
|
version: "latest",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
test("installs the CLI with npm into an isolated prefix", async () => {
|
||||||
|
const logPath = installFakeNpm();
|
||||||
|
const { installCli } = await getMainModule();
|
||||||
|
|
||||||
|
const cliPath = await installCli({
|
||||||
|
spec: "supabase@2.101.0",
|
||||||
|
version: "2.101.0",
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(cliPath).toContain(`${path.sep}node_modules${path.sep}.bin`);
|
||||||
|
expect(readNpmCalls(logPath)).toEqual([
|
||||||
|
viewMetadataCall("supabase@2.101.0"),
|
||||||
|
[
|
||||||
|
"install",
|
||||||
|
"--prefix",
|
||||||
|
expect.any(String),
|
||||||
|
"--omit=dev",
|
||||||
|
"--include=optional",
|
||||||
|
"--no-audit",
|
||||||
|
"--no-fund",
|
||||||
|
"--no-package-lock",
|
||||||
|
"--ignore-scripts=true",
|
||||||
|
"supabase@2.101.0",
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
test("allows install scripts for legacy npm packages that declare a postinstall", async () => {
|
||||||
|
const logPath = installFakeNpm("supabase 1.178.2", {
|
||||||
|
bin: "bin/supabase",
|
||||||
|
postinstall: "node scripts/postinstall.js",
|
||||||
|
});
|
||||||
|
const { installCli } = await getMainModule();
|
||||||
|
|
||||||
|
await installCli({
|
||||||
|
spec: "supabase@1.178.2",
|
||||||
|
version: "1.178.2",
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(readNpmCalls(logPath)).toEqual([
|
||||||
|
viewMetadataCall("supabase@1.178.2"),
|
||||||
|
[
|
||||||
|
"install",
|
||||||
|
"--prefix",
|
||||||
|
expect.any(String),
|
||||||
|
"--omit=dev",
|
||||||
|
"--include=optional",
|
||||||
|
"--no-audit",
|
||||||
|
"--no-fund",
|
||||||
|
"--no-package-lock",
|
||||||
|
"--ignore-scripts=false",
|
||||||
|
"supabase@1.178.2",
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
test("verifies lockfile integrity before installing", async () => {
|
||||||
|
const logPath = installFakeNpm("supabase 2.101.0", { integrity: "sha512-lock" });
|
||||||
|
const { installCli } = await getMainModule();
|
||||||
|
|
||||||
|
await installCli({
|
||||||
|
integrity: "sha512-lock",
|
||||||
|
spec: "supabase@2.101.0",
|
||||||
|
version: "2.101.0",
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(readNpmCalls(logPath)).toEqual([
|
||||||
|
viewMetadataCall("supabase@2.101.0"),
|
||||||
|
[
|
||||||
|
"install",
|
||||||
|
"--prefix",
|
||||||
|
expect.any(String),
|
||||||
|
"--omit=dev",
|
||||||
|
"--include=optional",
|
||||||
|
"--no-audit",
|
||||||
|
"--no-fund",
|
||||||
|
"--no-package-lock",
|
||||||
|
"--ignore-scripts=true",
|
||||||
|
"supabase@2.101.0",
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
test("fails when lockfile integrity does not match the registry", async () => {
|
||||||
|
installFakeNpm("supabase 2.101.0", { integrity: "sha512-registry" });
|
||||||
|
const { installCli } = await getMainModule();
|
||||||
|
|
||||||
|
try {
|
||||||
|
await installCli({
|
||||||
|
integrity: "sha512-lock",
|
||||||
|
spec: "supabase@2.101.0",
|
||||||
|
version: "2.101.0",
|
||||||
|
});
|
||||||
|
throw new Error("Expected installCli to reject");
|
||||||
|
} catch (error) {
|
||||||
|
expect(error).toEqual(
|
||||||
|
new Error("Lockfile integrity for supabase@2.101.0 does not match the npm registry"),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
test("fails when the npm package does not expose a Supabase CLI executable", async () => {
|
||||||
|
installFakeNpm("supabase 2.101.0", { bin: "missing" });
|
||||||
|
const { installCli } = await getMainModule();
|
||||||
|
|
||||||
|
try {
|
||||||
|
await installCli({
|
||||||
|
spec: "supabase@2.101.0",
|
||||||
|
version: "2.101.0",
|
||||||
|
});
|
||||||
|
throw new Error("Expected installCli to reject");
|
||||||
|
} catch (error) {
|
||||||
|
expect(error).toEqual(
|
||||||
|
new Error("The npm package supabase@2.101.0 does not expose a supabase executable"),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
test("runs the action with a package-lock resolution", async () => {
|
||||||
|
const logPath = installFakeNpm("supabase 2.43.0", { integrity: "sha512-package-lock" });
|
||||||
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
|
"package-lock.json": createPackageLock("2.43.0", "sha512-package-lock"),
|
||||||
|
});
|
||||||
|
const spies = createActionSpies("");
|
||||||
const { run } = await getMainModule();
|
const { run } = await getMainModule();
|
||||||
|
|
||||||
await run();
|
await run();
|
||||||
|
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.84.2");
|
expect(readNpmCalls(logPath)[0]).toEqual(viewMetadataCall("supabase@2.43.0"));
|
||||||
|
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 2.43.0");
|
||||||
|
expect(spies.addPath).toHaveBeenCalledWith(expect.stringContaining("node_modules"));
|
||||||
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
expect(spies.exportVariable).toHaveBeenCalledWith(CLI_CONFIG_REGISTRY, "ghcr.io");
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
expect(spies.setFailed).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("explicit version overrides detected root lockfiles", async () => {
|
test("explicit version overrides detected root lockfiles", async () => {
|
||||||
|
installFakeNpm("supabase 1.1.6");
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"bun.lock": createBunLock("2.45.0"),
|
"bun.lock": createBunLock("2.45.0"),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("supabase 1.0.0");
|
const spies = createActionSpies("1.1.6");
|
||||||
const spies = createActionSpies("1.0.0", cliDir, "/download/v1.0.0/supabase_1.0.0_");
|
|
||||||
const { run } = await getMainModule();
|
const { run } = await getMainModule();
|
||||||
|
|
||||||
await run();
|
await run();
|
||||||
|
|
||||||
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 1.0.0");
|
expect(spies.setOutput).toHaveBeenCalledWith("version", "supabase 1.1.6");
|
||||||
expect(spies.exportVariable).not.toHaveBeenCalled();
|
expect(spies.exportVariable).not.toHaveBeenCalled();
|
||||||
expect(spies.setFailed).not.toHaveBeenCalled();
|
expect(spies.setFailed).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("fails when the installed CLI does not report a version", async () => {
|
test("fails when the installed CLI does not report a version", async () => {
|
||||||
|
installFakeNpm("");
|
||||||
process.env.GITHUB_WORKSPACE = createWorkspace({
|
process.env.GITHUB_WORKSPACE = createWorkspace({
|
||||||
"package-lock.json": createPackageLock("2.46.0"),
|
"package-lock.json": createPackageLock("2.46.0", "sha512-test"),
|
||||||
});
|
});
|
||||||
const cliDir = createFakeCli("");
|
const spies = createActionSpies("");
|
||||||
const spies = createActionSpies("", cliDir, "/download/v2.46.0/supabase_");
|
|
||||||
const { run } = await getMainModule();
|
const { run } = await getMainModule();
|
||||||
|
|
||||||
await run();
|
await run();
|
||||||
|
|||||||
289
src/main.ts
289
src/main.ts
@@ -1,13 +1,31 @@
|
|||||||
import { $, semver } from "bun";
|
import { semver } from "bun";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as tc from "@actions/tool-cache";
|
import { existsSync, mkdtempSync, readFileSync } from "node:fs";
|
||||||
import { existsSync, readFileSync } from "node:fs";
|
import os from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from "node:url";
|
||||||
|
|
||||||
export const CLI_CONFIG_REGISTRY = "SUPABASE_INTERNAL_IMAGE_REGISTRY";
|
export const CLI_CONFIG_REGISTRY = "SUPABASE_INTERNAL_IMAGE_REGISTRY";
|
||||||
const REGISTRY_VERSION = "1.28.0";
|
const REGISTRY_VERSION = "1.28.0";
|
||||||
const DEFAULT_VERSION = "latest";
|
const DEFAULT_VERSION = "latest";
|
||||||
|
const NPM_PACKAGE = "supabase";
|
||||||
|
const NPM_EXECUTABLE_ENV = "SUPABASE_SETUP_CLI_NPM";
|
||||||
|
const SUPPORTED_DIST_TAGS = new Set([DEFAULT_VERSION, "beta"]);
|
||||||
|
const CONCRETE_VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/;
|
||||||
|
const CONCRETE_VERSION_EXTRACT_PATTERN = /\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?/;
|
||||||
|
|
||||||
|
type PackageResolution = {
|
||||||
|
spec: string;
|
||||||
|
version: string;
|
||||||
|
integrity?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
type PackageMetadata = {
|
||||||
|
version?: unknown;
|
||||||
|
bin?: unknown;
|
||||||
|
scripts?: unknown;
|
||||||
|
"dist.integrity"?: unknown;
|
||||||
|
};
|
||||||
|
|
||||||
type BunLock = {
|
type BunLock = {
|
||||||
workspaces?: {
|
workspaces?: {
|
||||||
@@ -25,6 +43,12 @@ type PnpmDependency =
|
|||||||
version?: string;
|
version?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type PnpmPackage = {
|
||||||
|
resolution?: {
|
||||||
|
integrity?: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
type PnpmLock = {
|
type PnpmLock = {
|
||||||
importers?: {
|
importers?: {
|
||||||
".": {
|
".": {
|
||||||
@@ -32,19 +56,16 @@ type PnpmLock = {
|
|||||||
devDependencies?: Record<string, PnpmDependency>;
|
devDependencies?: Record<string, PnpmDependency>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
packages?: Record<string, PnpmPackage>;
|
||||||
};
|
};
|
||||||
|
|
||||||
type PackageLock = {
|
type PackageLock = {
|
||||||
packages?: Record<string, { version?: string }>;
|
packages?: Record<string, { integrity?: string; version?: string }>;
|
||||||
dependencies?: Record<string, { version?: string }>;
|
dependencies?: Record<string, { integrity?: string; version?: string }>;
|
||||||
};
|
};
|
||||||
|
|
||||||
function getArchivePlatform(platform: NodeJS.Platform): string {
|
function isRecord(value: unknown): value is Record<string, unknown> {
|
||||||
return platform === "win32" ? "windows" : platform;
|
return typeof value === "object" && value !== null;
|
||||||
}
|
|
||||||
|
|
||||||
function getArchiveArch(arch: NodeJS.Architecture): string {
|
|
||||||
return arch === "x64" ? "amd64" : arch;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function extractConcreteVersion(raw: string | undefined): string | null {
|
function extractConcreteVersion(raw: string | undefined): string | null {
|
||||||
@@ -52,10 +73,41 @@ function extractConcreteVersion(raw: string | undefined): string | null {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const match = raw.match(/\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?/);
|
const match = raw.match(CONCRETE_VERSION_EXTRACT_PATTERN);
|
||||||
return match?.[0] ?? null;
|
return match?.[0] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function normalizeVersion(version: string): string {
|
||||||
|
return version.replace(/^v/i, "");
|
||||||
|
}
|
||||||
|
|
||||||
|
function normalizeSupportedVersion(version: string): string {
|
||||||
|
const normalizedVersion = normalizeVersion(version.trim());
|
||||||
|
const distTag = normalizedVersion.toLowerCase();
|
||||||
|
|
||||||
|
if (SUPPORTED_DIST_TAGS.has(distTag)) {
|
||||||
|
return distTag;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CONCRETE_VERSION_PATTERN.test(normalizedVersion)) {
|
||||||
|
return normalizedVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Error(
|
||||||
|
`Unsupported Supabase CLI version "${version}". Use latest, beta, or a fixed npm package version like 2.101.0.`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function toPackageResolution(version: string, integrity?: string): PackageResolution {
|
||||||
|
const normalizedVersion = normalizeSupportedVersion(version);
|
||||||
|
|
||||||
|
return {
|
||||||
|
spec: `${NPM_PACKAGE}@${normalizedVersion}`,
|
||||||
|
version: normalizedVersion,
|
||||||
|
integrity,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
function readWorkspaceLockfile(workspaceRoot: string, filename: string): string | null {
|
function readWorkspaceLockfile(workspaceRoot: string, filename: string): string | null {
|
||||||
const filePath = path.join(workspaceRoot, filename);
|
const filePath = path.join(workspaceRoot, filename);
|
||||||
|
|
||||||
@@ -70,7 +122,7 @@ function readWorkspaceLockfile(workspaceRoot: string, filename: string): string
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectVersionFromBunLock(workspaceRoot: string): string | null {
|
function detectResolutionFromBunLock(workspaceRoot: string): PackageResolution | null {
|
||||||
const text = readWorkspaceLockfile(workspaceRoot, "bun.lock");
|
const text = readWorkspaceLockfile(workspaceRoot, "bun.lock");
|
||||||
|
|
||||||
if (!text) {
|
if (!text) {
|
||||||
@@ -81,24 +133,28 @@ function detectVersionFromBunLock(workspaceRoot: string): string | null {
|
|||||||
const lockfile = JSON.parse(text.replace(/,\s*([}\]])/g, "$1")) as BunLock;
|
const lockfile = JSON.parse(text.replace(/,\s*([}\]])/g, "$1")) as BunLock;
|
||||||
const rootWorkspace = lockfile.workspaces?.[""];
|
const rootWorkspace = lockfile.workspaces?.[""];
|
||||||
const declaredVersion =
|
const declaredVersion =
|
||||||
rootWorkspace?.dependencies?.supabase ?? rootWorkspace?.devDependencies?.supabase;
|
rootWorkspace?.dependencies?.[NPM_PACKAGE] ?? rootWorkspace?.devDependencies?.[NPM_PACKAGE];
|
||||||
|
|
||||||
if (!declaredVersion) {
|
if (!declaredVersion) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const resolvedPackage = lockfile.packages?.supabase;
|
const resolvedPackage = lockfile.packages?.[NPM_PACKAGE];
|
||||||
if (Array.isArray(resolvedPackage) && typeof resolvedPackage[0] === "string") {
|
if (Array.isArray(resolvedPackage) && typeof resolvedPackage[0] === "string") {
|
||||||
return extractConcreteVersion(resolvedPackage[0]);
|
const version = extractConcreteVersion(resolvedPackage[0]);
|
||||||
|
const integrity = typeof resolvedPackage[3] === "string" ? resolvedPackage[3] : undefined;
|
||||||
|
|
||||||
|
return version ? toPackageResolution(version, integrity) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return extractConcreteVersion(declaredVersion);
|
const version = extractConcreteVersion(declaredVersion);
|
||||||
|
return version ? toPackageResolution(version) : null;
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectVersionFromPnpmLock(workspaceRoot: string): string | null {
|
function detectResolutionFromPnpmLock(workspaceRoot: string): PackageResolution | null {
|
||||||
const text = readWorkspaceLockfile(workspaceRoot, "pnpm-lock.yaml");
|
const text = readWorkspaceLockfile(workspaceRoot, "pnpm-lock.yaml");
|
||||||
|
|
||||||
if (!text) {
|
if (!text) {
|
||||||
@@ -109,19 +165,29 @@ function detectVersionFromPnpmLock(workspaceRoot: string): string | null {
|
|||||||
const lockfile = Bun.YAML.parse(text) as PnpmLock;
|
const lockfile = Bun.YAML.parse(text) as PnpmLock;
|
||||||
const rootImporter = lockfile.importers?.["."];
|
const rootImporter = lockfile.importers?.["."];
|
||||||
const dependency =
|
const dependency =
|
||||||
rootImporter?.dependencies?.supabase ?? rootImporter?.devDependencies?.supabase;
|
rootImporter?.dependencies?.[NPM_PACKAGE] ?? rootImporter?.devDependencies?.[NPM_PACKAGE];
|
||||||
|
const version =
|
||||||
|
typeof dependency === "string"
|
||||||
|
? extractConcreteVersion(dependency)
|
||||||
|
: extractConcreteVersion(dependency?.version);
|
||||||
|
|
||||||
if (typeof dependency === "string") {
|
if (!version) {
|
||||||
return extractConcreteVersion(dependency);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return extractConcreteVersion(dependency?.version);
|
const integrity = Object.entries(lockfile.packages ?? {}).find(
|
||||||
|
([packageKey]) =>
|
||||||
|
packageKey === `${NPM_PACKAGE}@${version}` ||
|
||||||
|
packageKey.startsWith(`/${NPM_PACKAGE}@${version}`),
|
||||||
|
)?.[1].resolution?.integrity;
|
||||||
|
|
||||||
|
return toPackageResolution(version, integrity);
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectVersionFromPackageLock(workspaceRoot: string): string | null {
|
function detectResolutionFromPackageLock(workspaceRoot: string): PackageResolution | null {
|
||||||
const text = readWorkspaceLockfile(workspaceRoot, "package-lock.json");
|
const text = readWorkspaceLockfile(workspaceRoot, "package-lock.json");
|
||||||
|
|
||||||
if (!text) {
|
if (!text) {
|
||||||
@@ -130,55 +196,172 @@ function detectVersionFromPackageLock(workspaceRoot: string): string | null {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const lockfile = JSON.parse(text) as PackageLock;
|
const lockfile = JSON.parse(text) as PackageLock;
|
||||||
|
const packageEntry = lockfile.packages?.[`node_modules/${NPM_PACKAGE}`];
|
||||||
|
const dependencyEntry = lockfile.dependencies?.[NPM_PACKAGE];
|
||||||
|
const version =
|
||||||
|
extractConcreteVersion(packageEntry?.version) ??
|
||||||
|
extractConcreteVersion(dependencyEntry?.version);
|
||||||
|
|
||||||
return (
|
return version
|
||||||
extractConcreteVersion(lockfile.packages?.["node_modules/supabase"]?.version) ??
|
? toPackageResolution(version, packageEntry?.integrity ?? dependencyEntry?.integrity)
|
||||||
extractConcreteVersion(lockfile.dependencies?.supabase?.version)
|
: null;
|
||||||
);
|
|
||||||
} catch {
|
} catch {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function resolveVersion(inputVersion: string): string {
|
export function resolvePackage(inputVersion: string): PackageResolution {
|
||||||
const requestedVersion = inputVersion.trim();
|
const requestedVersion = inputVersion.trim();
|
||||||
|
|
||||||
if (requestedVersion) {
|
if (requestedVersion) {
|
||||||
return requestedVersion;
|
return toPackageResolution(requestedVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
const workspaceRoot = process.env.GITHUB_WORKSPACE?.trim();
|
const workspaceRoot = process.env.GITHUB_WORKSPACE?.trim();
|
||||||
|
|
||||||
if (!workspaceRoot) {
|
if (!workspaceRoot) {
|
||||||
return DEFAULT_VERSION;
|
return toPackageResolution(DEFAULT_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
detectVersionFromBunLock(workspaceRoot) ??
|
detectResolutionFromBunLock(workspaceRoot) ??
|
||||||
detectVersionFromPnpmLock(workspaceRoot) ??
|
detectResolutionFromPnpmLock(workspaceRoot) ??
|
||||||
detectVersionFromPackageLock(workspaceRoot) ??
|
detectResolutionFromPackageLock(workspaceRoot) ??
|
||||||
DEFAULT_VERSION
|
toPackageResolution(DEFAULT_VERSION)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getDownloadUrl(version: string): string {
|
function verifyPackageIntegrity(resolution: PackageResolution, metadata: PackageMetadata): void {
|
||||||
const platform = getArchivePlatform(process.platform);
|
if (!resolution.integrity) {
|
||||||
const arch = getArchiveArch(process.arch);
|
return;
|
||||||
const filename = `supabase_${platform}_${arch}.tar.gz`;
|
|
||||||
|
|
||||||
if (version.toLowerCase() === "latest") {
|
|
||||||
return `https://github.com/supabase/cli/releases/latest/download/${filename}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (semver.order(version, REGISTRY_VERSION) === -1) {
|
const registryIntegrity = metadata["dist.integrity"];
|
||||||
return `https://github.com/supabase/cli/releases/download/v${version}/supabase_${version}_${platform}_${arch}.tar.gz`;
|
if (registryIntegrity !== resolution.integrity) {
|
||||||
|
throw new Error(`Lockfile integrity for ${resolution.spec} does not match the npm registry`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return `https://github.com/supabase/cli/releases/download/v${version}/${filename}`;
|
async function getPackageMetadata(resolution: PackageResolution): Promise<PackageMetadata> {
|
||||||
|
const output = await runNpm([
|
||||||
|
"view",
|
||||||
|
resolution.spec,
|
||||||
|
"version",
|
||||||
|
"bin",
|
||||||
|
"scripts",
|
||||||
|
"dist.integrity",
|
||||||
|
"--json",
|
||||||
|
]);
|
||||||
|
const metadata = JSON.parse(output) as unknown;
|
||||||
|
|
||||||
|
if (!isRecord(metadata)) {
|
||||||
|
throw new Error(`Could not read npm metadata for ${resolution.spec}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return metadata;
|
||||||
|
}
|
||||||
|
|
||||||
|
function verifyPackageMetadata(resolution: PackageResolution, metadata: PackageMetadata): void {
|
||||||
|
if (typeof metadata.version !== "string" || !CONCRETE_VERSION_PATTERN.test(metadata.version)) {
|
||||||
|
throw new Error(`Could not resolve a fixed npm version for ${resolution.spec}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const bin = metadata.bin;
|
||||||
|
const hasSupabaseBin =
|
||||||
|
typeof bin === "string" || (isRecord(bin) && typeof bin[NPM_PACKAGE] === "string");
|
||||||
|
|
||||||
|
if (!hasSupabaseBin) {
|
||||||
|
throw new Error(`The npm package ${resolution.spec} does not expose a supabase executable`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function shouldIgnoreInstallScripts(metadata: PackageMetadata): boolean {
|
||||||
|
return !(isRecord(metadata.scripts) && typeof metadata.scripts.postinstall === "string");
|
||||||
|
}
|
||||||
|
|
||||||
|
function createInstallRoot(): string {
|
||||||
|
const tempRoot = process.env.RUNNER_TEMP?.trim() || os.tmpdir();
|
||||||
|
return mkdtempSync(path.join(tempRoot, "setup-cli-"));
|
||||||
|
}
|
||||||
|
|
||||||
|
async function runNpm(args: string[]): Promise<string> {
|
||||||
|
const executable = process.env[NPM_EXECUTABLE_ENV]?.trim() || "npm";
|
||||||
|
const proc = Bun.spawn([executable, ...args], {
|
||||||
|
env: process.env,
|
||||||
|
stderr: "pipe",
|
||||||
|
stdout: "pipe",
|
||||||
|
});
|
||||||
|
const [stdout, stderr, exitCode] = await Promise.all([
|
||||||
|
new Response(proc.stdout).text(),
|
||||||
|
new Response(proc.stderr).text(),
|
||||||
|
proc.exited,
|
||||||
|
]);
|
||||||
|
|
||||||
|
if (exitCode !== 0) {
|
||||||
|
throw new Error(stderr.trim() || `npm ${args.join(" ")} failed`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return stdout;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function installCli(resolution: PackageResolution): Promise<string> {
|
||||||
|
const metadata = await getPackageMetadata(resolution);
|
||||||
|
verifyPackageMetadata(resolution, metadata);
|
||||||
|
verifyPackageIntegrity(resolution, metadata);
|
||||||
|
|
||||||
|
const installRoot = createInstallRoot();
|
||||||
|
|
||||||
|
await runNpm([
|
||||||
|
"install",
|
||||||
|
"--prefix",
|
||||||
|
installRoot,
|
||||||
|
"--omit=dev",
|
||||||
|
"--include=optional",
|
||||||
|
"--no-audit",
|
||||||
|
"--no-fund",
|
||||||
|
"--no-package-lock",
|
||||||
|
`--ignore-scripts=${shouldIgnoreInstallScripts(metadata)}`,
|
||||||
|
resolution.spec,
|
||||||
|
]);
|
||||||
|
|
||||||
|
return path.join(installRoot, "node_modules", ".bin");
|
||||||
|
}
|
||||||
|
|
||||||
|
function getCliExecutablePath(cliPath: string): string {
|
||||||
|
if (process.platform !== "win32") {
|
||||||
|
return path.join(cliPath, "supabase");
|
||||||
|
}
|
||||||
|
|
||||||
|
const cmdPath = path.join(cliPath, "supabase.cmd");
|
||||||
|
if (existsSync(cmdPath)) {
|
||||||
|
return cmdPath;
|
||||||
|
}
|
||||||
|
|
||||||
|
const exePath = path.join(cliPath, "supabase.exe");
|
||||||
|
if (existsSync(exePath)) {
|
||||||
|
return exePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
return path.join(cliPath, "supabase");
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function determineInstalledVersion(cliPath: string): Promise<string> {
|
export async function determineInstalledVersion(cliPath: string): Promise<string> {
|
||||||
const version = (await $`${path.join(cliPath, "supabase")} --version`.text()).trim();
|
const executable = getCliExecutablePath(cliPath);
|
||||||
|
const proc = Bun.spawn([executable, "--version"], {
|
||||||
|
stderr: "pipe",
|
||||||
|
stdout: "pipe",
|
||||||
|
});
|
||||||
|
const [stdout, stderr, exitCode] = await Promise.all([
|
||||||
|
new Response(proc.stdout).text(),
|
||||||
|
new Response(proc.stderr).text(),
|
||||||
|
proc.exited,
|
||||||
|
]);
|
||||||
|
|
||||||
|
if (exitCode !== 0) {
|
||||||
|
throw new Error(stderr.trim() || "Could not determine installed Supabase CLI version");
|
||||||
|
}
|
||||||
|
|
||||||
|
const version = stdout.trim();
|
||||||
if (!version) {
|
if (!version) {
|
||||||
throw new Error("Could not determine installed Supabase CLI version");
|
throw new Error("Could not determine installed Supabase CLI version");
|
||||||
}
|
}
|
||||||
@@ -186,16 +369,24 @@ export async function determineInstalledVersion(cliPath: string): Promise<string
|
|||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function shouldUseGhcrRegistry(requestedVersion: string, installedVersion: string): boolean {
|
||||||
|
if (requestedVersion.toLowerCase() === DEFAULT_VERSION) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
const concreteVersion = extractConcreteVersion(installedVersion);
|
||||||
|
return concreteVersion !== null && semver.order(concreteVersion, REGISTRY_VERSION) >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
export async function run(): Promise<void> {
|
export async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const version = resolveVersion(core.getInput("version"));
|
const resolution = resolvePackage(core.getInput("version"));
|
||||||
const tarball = await tc.downloadTool(getDownloadUrl(version));
|
const cliPath = await installCli(resolution);
|
||||||
const cliPath = await tc.extractTar(tarball);
|
|
||||||
const installedVersion = await determineInstalledVersion(cliPath);
|
const installedVersion = await determineInstalledVersion(cliPath);
|
||||||
core.setOutput("version", installedVersion);
|
core.setOutput("version", installedVersion);
|
||||||
core.addPath(cliPath);
|
core.addPath(cliPath);
|
||||||
|
|
||||||
if (version.toLowerCase() === "latest" || semver.order(version, REGISTRY_VERSION) >= 0) {
|
if (shouldUseGhcrRegistry(resolution.version, installedVersion)) {
|
||||||
core.exportVariable(CLI_CONFIG_REGISTRY, "ghcr.io");
|
core.exportVariable(CLI_CONFIG_REGISTRY, "ghcr.io");
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user