From 7e00c76d0c0d759e9db6b8432746ff0aa071c6b3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Sep 2024 16:37:03 -0700 Subject: [PATCH] [HOTFIX] fix(openapi): fix the env of openAPI lint plugin (#4877) ### What changes were proposed in this pull request? - update redocly/cli version from 1.5.0 to 1.23.1 - fixed the node version to 21.6.1 - fixed the npm version to 10.2.4 ### Why are the changes needed? redocly/cli failed at version 1.5.0 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? build CI passed Co-authored-by: mchades --- .github/workflows/build.yml | 1 + docs/build.gradle.kts | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cf17683a0d..b934c4cc26a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,6 +45,7 @@ jobs: - trino-connector/** - web/** - docs/open-api/** + - docs/build.gradle.kts - build.gradle.kts - gradle.properties - gradlew diff --git a/docs/build.gradle.kts b/docs/build.gradle.kts index 16b5f2525fa..60b0be907a5 100644 --- a/docs/build.gradle.kts +++ b/docs/build.gradle.kts @@ -17,11 +17,18 @@ * under the License. */ +import com.github.gradle.node.NodeExtension import com.github.gradle.node.npm.task.NpxTask +configure { + version = "21.6.1" + npmVersion = "10.2.4" + download = true +} + tasks { val lintOpenAPI by registering(NpxTask::class) { - command.set("@redocly/cli@1.5.0") + command.set("@redocly/cli@1.23.1") args.set(listOf("lint", "--extends=recommended-strict", "${project.projectDir}/open-api/openapi.yaml")) }