File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 OUT_DIR : dist
2020 BUNDLED_JSON : dist/openapi.json
2121 REDOC_HTML : dist/redoc.html
22+ REDOCLY_VERSION : 2.0.8
2223
2324jobs :
2425 release :
@@ -44,12 +45,15 @@ jobs:
4445 - name : Bundle OpenAPI
4546 run : |
4647 mkdir -p "$OUT_DIR"
47- npx --yes @redocly/cli@latest bundle "$OPENAPI_ENTRY" \
48+ npx --yes @redocly/cli@$REDOCLY_VERSION bundle "$OPENAPI_ENTRY" \
4849 --output "$BUNDLED_JSON" \
4950 --ext json
5051
5152 - name : Lint OpenAPI (bundled)
52- run : npx --yes @redocly/cli@latest lint "$BUNDLED_JSON"
53+ run : npx --yes @redocly/cli@$REDOCLY_VERSION lint "$BUNDLED_JSON"
54+
55+ - name : Build Redoc HTML
56+ run : npx --yes @redocly/cli@$REDOCLY_VERSION build-docs "$BUNDLED_JSON" --output="$REDOC_HTML"
5357
5458 - name : Verify info.version matches tag
5559 run : |
8589 with :
8690 node-version : " 20"
8791
88- - name : Build Redoc HTML
89- run : npx --yes @redocly/cli@latest build-docs "$BUNDLED_JSON" --output="$REDOC_HTML"
90-
9192 - name : Create GitHub Release
9293 uses : softprops/action-gh-release@v2
9394 with :
You can’t perform that action at this time.
0 commit comments