Skip to content

Commit affe3f2

Browse files
committed
ci: use reusable worflow for node-versions
1 parent 002dda8 commit affe3f2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,10 @@ jobs:
3838
run: npm run test:types
3939

4040
node-versions:
41-
name: Get Node.js Versions
42-
runs-on: ubuntu-latest
43-
outputs:
44-
matrix: ${{ steps.query.outputs.matrix }}
45-
steps:
46-
- id: query
47-
run: |
48-
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"
41+
uses: panva/.github/.github/workflows/node-versions.yml@main
42+
with:
43+
min: 18
44+
4945
node:
5046
needs:
5147
- node-versions

0 commit comments

Comments
 (0)