From ff1436ea991d771b0257a7c12752621ae6abaaf9 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 18 Oct 2024 13:29:55 +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 ae59ddac..9657b51a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,14 +58,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: