mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
fix: use npx instead of pnpm exec for redocly
This commit is contained in:
1 parent
79b4b521d2
commit
ff0ea84869
2 files changed
+6
-12
No files matched your search
@@ -38,12 +38,6 @@ jobs:
|
||||
- name: Install deps
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Debug pnpm env
|
||||
run: |
|
||||
echo "NODE_ENV=$NODE_ENV"
|
||||
pnpm config list
|
||||
ls apps/docs/node_modules/.bin/ | grep redocly || echo "redocly bin missing"
|
||||
|
||||
- name: Change to apps/docs/spec directory and run make command
|
||||
working-directory: apps/docs/spec
|
||||
run: make download.api.v1 dereference.api.v1 generate.sections.api.v1 format
|
||||
|
||||
@@ -62,17 +62,17 @@ download.analytics.v0:
|
||||
transform: dereference.api.v1 dereference.auth.v1 dereference.storage.v0
|
||||
|
||||
dereference.api.v1:
|
||||
pnpm exec redocly bundle --dereferenced -o $(REPO_DIR)/transforms/api_v1_openapi_deparsed.json $(REPO_DIR)/api_v1_openapi.json
|
||||
pnpm exec redocly bundle --dereferenced -o $(REPO_DIR)/transforms/api_v2_openapi_deparsed.json $(REPO_DIR)/api_v2_openapi.json
|
||||
npx redocly bundle --dereferenced -o $(REPO_DIR)/transforms/api_v1_openapi_deparsed.json $(REPO_DIR)/api_v1_openapi.json
|
||||
npx redocly bundle --dereferenced -o $(REPO_DIR)/transforms/api_v2_openapi_deparsed.json $(REPO_DIR)/api_v2_openapi.json
|
||||
|
||||
dereference.auth.v1:
|
||||
pnpm exec redocly bundle --dereferenced -o $(REPO_DIR)/transforms/auth_v1_openapi_deparsed.json $(REPO_DIR)/auth_v1_openapi.json
|
||||
npx redocly bundle --dereferenced -o $(REPO_DIR)/transforms/auth_v1_openapi_deparsed.json $(REPO_DIR)/auth_v1_openapi.json
|
||||
|
||||
dereference.storage.v0:
|
||||
pnpm exec redocly bundle --dereferenced -o $(REPO_DIR)/transforms/storage_v0_openapi_deparsed.json $(REPO_DIR)/storage_v0_openapi.json
|
||||
npx redocly bundle --dereferenced -o $(REPO_DIR)/transforms/storage_v0_openapi_deparsed.json $(REPO_DIR)/storage_v0_openapi.json
|
||||
|
||||
dereference.analytics.v0:
|
||||
pnpm exec redocly bundle --dereferenced -o $(REPO_DIR)/transforms/analytics_v0_openapi_deparsed.json $(REPO_DIR)/analytics_v0_openapi.json
|
||||
npx redocly bundle --dereferenced -o $(REPO_DIR)/transforms/analytics_v0_openapi_deparsed.json $(REPO_DIR)/analytics_v0_openapi.json
|
||||
|
||||
###############################################################################
|
||||
# Generate sections from OpenAPI 3.0
|
||||
@@ -90,7 +90,7 @@ generate.sections.api.v1:
|
||||
###############################################################################
|
||||
|
||||
validate.analytics.v0:
|
||||
pnpm exec redocly lint --extends=minimal $(REPO_DIR)/analytics_v0_openapi.json
|
||||
npx redocly lint --extends=minimal $(REPO_DIR)/analytics_v0_openapi.json
|
||||
|
||||
###############################################################################
|
||||
# Format everything - easier for git to track changes.
|
||||
|
||||
Reference in new issue
Block a user