Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[HOTFIX] fix(openapi): fix the env of openAPI lint plugin (#4876)

mchadesc7200c89a04e
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0cf17683a0..b934c4cc26 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 16b5f2525f..60b0be907a 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<NodeExtension> {
+ version = "21.6.1"
+ npmVersion = "10.2.4"
+ download = true
+}
+
tasks {
val lintOpenAPI by registering(NpxTask::class) {
- command.set("@redocly/[email protected]")
+ command.set("@redocly/[email protected]")
args.set(listOf("lint", "--extends=recommended-strict", "${project.projectDir}/open-api/openapi.yaml"))
}