diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00efcf9..de16870 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,16 +2,16 @@ name: Test Package on: push -env: - NODE_VERSION: 16 - jobs: test: runs-on: ubuntu-22.04 timeout-minutes: 15 + strategy: + matrix: + node_version: [16, 18, 20] steps: - - uses: actions/checkout@v3 - - uses: aboutbits/github-actions-node/setup-and-install@v1 + - uses: actions/checkout@v4 + - uses: aboutbits/github-actions-node/setup-and-install@v2 with: - node-version: ${{ env.NODE_VERSION }} + node-version: ${{ matrix.node_version }} - run: npm run checks diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad8758b..419d92a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,15 +6,15 @@ on: - 'v*' env: - NODE_VERSION: 16 + NODE_VERSION: 20 jobs: build: runs-on: ubuntu-22.04 timeout-minutes: 5 steps: - - uses: actions/checkout@v3 - - uses: actions/github-script@v6 + - uses: actions/checkout@v4 + - uses: actions/github-script@v7 with: script: | github.rest.repos.createRelease({ @@ -23,7 +23,7 @@ jobs: tag_name: '${{ github.ref }}', name: 'Release ${{ github.ref_name }}' }) - - uses: aboutbits/github-actions-node/setup-and-install@v1 + - uses: aboutbits/github-actions-node/setup-and-install@v2 with: node-version: ${{ env.NODE_VERSION }} registry-url: 'https://registry.npmjs.org' diff --git a/package.json b/package.json index 568c97c..08f1a49 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "version": "3.0.7", "description": "Pagination hooks for React", "engines": { - "npm": "^8", - "node": "^16" + "npm": ">=8", + "node": ">=16" }, "files": [ "readme.md",