mirror of
https://github.com/supabase/setup-cli.git
synced 2026-06-27 17:36:57 +00:00
## Summary - Detect Linux musl runners in the v1 action and download the Supabase CLI `.apk` asset for CLI versions `>= 2.99.0`. - Add the extracted `usr/bin` directory to `PATH` for `.apk` archives. - Backport the optional `github-token` input for authenticated `latest` release lookup, because the test matrix hit unauthenticated GitHub API rate limits. - Rebuild `dist/index.js` for the Node action. ## Validation - `npm run format:check` - `npm run lint` - `npm test` - `npm run package` - Local Docker smoke test in `node:20-alpine` with `INPUT_VERSION=2.100.1` - setup-cli-testing workflow: https://github.com/jgoux/setup-cli-testing/actions/runs/26165593808 The external workflow passed Alpine `2.100.1`, Alpine `latest`, and Ubuntu/macOS/Windows with both `2.100.1` and `latest`.
73 lines
2.3 KiB
JSON
73 lines
2.3 KiB
JSON
{
|
|
"name": "setup-cli",
|
|
"description": "Supabase CLI GitHub Action",
|
|
"version": "1.6.0",
|
|
"author": "",
|
|
"type": "module",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/supabase/setup-cli.git"
|
|
},
|
|
"keywords": [
|
|
"actions"
|
|
],
|
|
"exports": {
|
|
".": "./dist/index.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"scripts": {
|
|
"bundle": "npm run format:write && npm run package",
|
|
"ci-test": "NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
|
|
"coverage": "npx make-coverage-badge --output-path ./badges/coverage.svg",
|
|
"format:write": "npx prettier --write .",
|
|
"format:check": "npx prettier --check .",
|
|
"lint": "npx eslint .",
|
|
"local-action": "npx @github/local-action . src/main.ts .env",
|
|
"package": "npx rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
"package:watch": "npm run package -- --watch",
|
|
"test": "NODE_OPTIONS=--experimental-vm-modules NODE_NO_WARNINGS=1 npx jest",
|
|
"all": "npm run format:write && npm run lint && npm run package && npm run test && npm run coverage"
|
|
},
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/core": "^3.0.1",
|
|
"@actions/tool-cache": "^4.0.0",
|
|
"semver": "^7.7.2"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/compat": "^1.3.1",
|
|
"@github/local-action": "^5.1.0",
|
|
"@jest/globals": "^30.0.5",
|
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/node": "^20.19.9",
|
|
"@types/semver": "^7.7.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
"@typescript-eslint/parser": "^8.38.0",
|
|
"eslint": "^9.31.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
"eslint-plugin-import": "^2.32.0",
|
|
"eslint-plugin-jest": "^29.0.1",
|
|
"eslint-plugin-prettier": "^5.5.3",
|
|
"jest": "^30.0.5",
|
|
"js-yaml": "^4.1.0",
|
|
"make-coverage-badge": "^1.2.0",
|
|
"prettier": "^3.6.2",
|
|
"prettier-eslint": "^16.4.2",
|
|
"rollup": "^4.45.1",
|
|
"ts-jest": "^29.4.0",
|
|
"ts-jest-resolver": "^2.0.1",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"optionalDependencies": {
|
|
"@rollup/rollup-linux-x64-gnu": "*"
|
|
}
|
|
}
|