Skip to content

Commit

Permalink
[HOTFIX] fix(openapi): fix the env of openAPI lint plugin (#4876)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
mchades authored Sep 7, 2024
1 parent 3ba729f commit c7200c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- trino-connector/**
- web/**
- docs/open-api/**
- docs/build.gradle.kts
- build.gradle.kts
- gradle.properties
- gradlew
Expand Down
9 changes: 8 additions & 1 deletion docs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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/cli@1.5.0")
command.set("@redocly/cli@1.23.1")
args.set(listOf("lint", "--extends=recommended-strict", "${project.projectDir}/open-api/openapi.yaml"))
}

Expand Down

0 comments on commit c7200c8

Please sign in to comment.