This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new c7200c89a [HOTFIX] fix(openapi): fix the env of openAPI lint plugin 
(#4876)
c7200c89a is described below

commit c7200c89a04ed8dab6f3bfe4d2f209220dd5415d
Author: mchades <[email protected]>
AuthorDate: Sun Sep 8 06:25:52 2024 +0800

    [HOTFIX] fix(openapi): fix the env of openAPI lint plugin (#4876)
    
    ### 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
---
 .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 0cf17683a..b934c4cc2 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 16b5f2525..60b0be907 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"))
   }
 

Reply via email to