From 10335579b2a997936d20a90d91960532486dee28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominykas=20Bly=C5=BE=C4=97?= Date: Tue, 16 Jul 2024 20:31:39 +0300 Subject: [PATCH] feat: update engines to >=18 and use pkgjs/action (#22) * ci: use pkgjs/action * feat!: update engines --------- Co-authored-by: Wes Todd --- .github/workflows/test.yml | 21 ++++++++------------- package.json | 3 +++ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0891eef..f5d175b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,16 +1,11 @@ name: Test -on: push + +on: + push: + branches: + - main + pull_request: + jobs: test: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [10.x, 12.x, 13.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: npm install and test - run: npm it + uses: pkgjs/action/.github/workflows/node-test.yaml@v0 diff --git a/package.json b/package.json index fd5f52b..18648ee 100644 --- a/package.json +++ b/package.json @@ -47,5 +47,8 @@ }, "bin": { "nv": "./bin/nv" + }, + "engines": { + "node": "^18 || ^20 || ^22" } }