Skip to content

Commit

Permalink
Merge pull request #21 from aboutbits/engines-update
Browse files Browse the repository at this point in the history
Update engines
  • Loading branch information
alexlanz authored Mar 18, 2024
2 parents 9a07ead + 96b2206 commit d6ef9a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d6ef9a9

Please sign in to comment.