From 4439b000c4b0e68d600f661989ef97b717caf4bd Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 18 Oct 2024 13:28:12 +0200 Subject: [PATCH] ci: use reusable worflow for node-versions --- .github/workflows/test.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 548bf3fe..c2144a4a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,14 +59,9 @@ jobs: - run: npm run docs-check node-versions: - name: Get Node.js Versions - runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.query.outputs.matrix }} - steps: - - id: query - run: | - echo "matrix=$(curl -s https://raw.githubusercontent.com/actions/node-versions/refs/heads/main/versions-manifest.json | jq -c '[.[] | select(.lts) | select(.version | split(".")[0] | tonumber >= 18) | .lts | ascii_downcase | "lts/\(.)"] + ["current"] | unique')" >> "$GITHUB_OUTPUT" + uses: panva/.github/.github/workflows/node-versions.yml@main + with: + min: 18 node: needs: