Skip to content

Commit

Permalink
plat-206 revert (#551)
Browse files Browse the repository at this point in the history
Co-authored-by: kfirm <[email protected]>
  • Loading branch information
kfirm and kfirm authored Nov 7, 2023
1 parent d4eb904 commit d951691
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: 18
node-version: 14
registry-url: https://registry.npmjs.org

- name: Install Yarn
Expand All @@ -27,9 +27,7 @@ jobs:
- name: Install and Bundle
run: |
yarn install
yarn bundle:redocly
yarn redocly:split
yarn redocly:site
yarn bundle:redoc
yarn bundle:swagger
- name: Deploy Local
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: 18
node-version: 14
registry-url: https://registry.npmjs.org

- name: Install Yarn
Expand All @@ -23,7 +23,7 @@ jobs:
run: |
yarn install
yarn validate
yarn bundle:redocly
yarn bundle:redoc
yarn bundle:swagger
- name: redoc-lint
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@
},
"scripts": {
"serve": "redoc-cli serve --template redoc/template.hbs.html --options='{\"menuToggle\":true,\"expandSingleSchemaField\":true,\"sortPropsAlphabetically\":true,\"generatedPayloadSamplesMaxDepth\":20,\"theme\":{\"colors\":{\"primary\":{\"main\":\"#0086ff\"}}}}' --watch api/spot.yaml",
"bundle:redocly": "redocly bundle api/spot.yaml --output build/temp.yaml",
"redocly:split": "redocly split build/temp.yaml --outDir build",
"redocly:site": "redocly build-docs build/openapi.yaml -t redoc/template.hbs.html -o build/index.html",
"bundle:redoc": "redoc-cli bundle --template redoc/template.hbs.html --options='{\"menuToggle\":true,\"expandSingleSchemaField\":true,\"sortPropsAlphabetically\":true,\"generatedPayloadSamplesMaxDepth\":20,\"theme\":{\"colors\":{\"primary\":{\"main\":\"#0086ff\"}}}}' --output build/index.html api/spot.yaml",
"bundle:swagger": "swagger-cli bundle --outfile build/openapi.json api/spot.yaml",
"validate": "swagger-cli validate --no-schema api/spot.yaml",
"clean": "rm -rf build"
},
"devDependencies": {
"@redocly/cli": "1.4.0",
"prettier": "^2.6.2",
"redoc-cli": "^0.13.20",
"swagger-cli": "^4.0.4"
},
"engines": {
"node": ">=16"
"node": ">=12"
}
}

0 comments on commit d951691

Please sign in to comment.