Skip to content

Commit

Permalink
feat: drop Node.js v14 support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Node.js v14 is no longer supported.
  • Loading branch information
kenany committed Jun 3, 2023
1 parent 705f824 commit 3081598
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>kenany/renovate-config"],
"assignees": ["kenany"],
"reviewers": ["kenany"]
"extends": [
"local>kenany/renovate-config",
":assignAndReview(kenany)"
]
}
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: release
on:
push:
branches:
- master
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3.6.0
with:
node-version: 20
- name: Update npm
run: |
npm install -g npm
npm --version
- uses: actions/checkout@v3.5.2
- name: Install dependencies
uses: bahmutov/npm-install@v1.8.32
with:
useLockFile: false
- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 12 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
"@semantic-release/npm",
"@semantic-release/git"
],
"preset": "conventionalcommits",
"tagFormat": "${version}"
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/* eslint-disable quote-props */

/** @type {{ [code: string]: [number, number]; }} */
const ICAO_CODES = {
'AGAF': [-9.19138888889, 160.948333333],
'AGAR': [-9.85472222222, 161.979166667],
Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,32 @@
"keywords": [
"airport"
],
"repository": "KenanY/icao",
"repository": "github:kenany/icao",
"license": "SEE LICENSE IN LICENSE.txt",
"author": "Kenan Yildirim <kenan@kenany.me> (https://kenany.me/)",
"main": "index.js",
"files": [
"index.js"
"CHANGELOG.md",
"index.js",
"LICENSE.txt"
],
"engines": {
"node": "14 || 16 || >=18"
"node": "16 || 18 || >=20"
},
"scripts": {
"lint": "eslint .",
"pretest": "npm run -s lint",
"test": "tape test/index.js"
"test": "tape test/index.js",
"release": "semantic-release"
},
"devDependencies": {
"@kenan/eslint-config": "^10.0.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^5.0.0",
"eslint": "^8.41.0",
"lodash.isplainobject": "^4.0.6",
"semantic-release": "^21.0.3",
"tape": "^5.6.3"
}
}

0 comments on commit 3081598

Please sign in to comment.