Skip to content

Commit 3d6dcb8

Browse files
Update release workflow
1 parent f950bba commit 3d6dcb8

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
OUT_DIR: dist
2020
BUNDLED_JSON: dist/openapi.json
2121
REDOC_HTML: dist/redoc.html
22+
REDOCLY_VERSION: 2.0.8
2223

2324
jobs:
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: |
@@ -85,9 +89,6 @@ jobs:
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:

0 commit comments

Comments
 (0)