diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 36d1996..2aefe6f 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -20,15 +20,12 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "24" - cache: npm - - - run: npm ci - name: Lint OpenAPI specs with Spectral - run: npx spectral lint specs/v3/*.yaml --fail-severity error + run: npx --yes @stoplight/spectral-cli@^6.14.0 lint specs/v3/*.yaml --fail-severity error - name: Bundle OpenAPI specs - run: npx redocly bundle specs/v3/*.yaml -o bundled/openapi-v3.yaml + run: npx --yes @redocly/cli@^1.28.0 bundle specs/v3/*.yaml -o bundled/openapi-v3.yaml - name: Verify bundled spec is valid - run: npx spectral lint bundled/openapi-v3.yaml --fail-severity error + run: npx --yes @stoplight/spectral-cli@^6.14.0 lint bundled/openapi-v3.yaml --fail-severity error