Skip to content

Commit

Permalink
Deprecate eol versions of node (#43)
Browse files Browse the repository at this point in the history
* Deprecate unsupported versions of NodeJS

Removes support for 10.x, 12.x and 15.x
Adds support for 18.x

* Update publish job to use NodeJS 16
  • Loading branch information
mapitman committed Sep 26, 2022
1 parent bb3271e commit be340fb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
path: .
- uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
- run: npm publish ./gettyimages-api-${{ steps.previoustag.outputs.tag }}.tgz
env:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "Getty Images API Team"
},
"engines": {
"node": ">=10.19.0"
"node": ">=12.22.12"
},
"main": "gettyimages-api.js",
"devDependencies": {
Expand Down

0 comments on commit be340fb

Please sign in to comment.