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")) }