Skip to content

Commit

Permalink
Enforce node 20+ (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
bratanon authored Jun 16, 2024
1 parent f9faf9c commit b8a53d8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.16.x'
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.14.0
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- .`nvmrc` file.
- Enforce node 20+.

### Changed
- Dependabot uses node version from `.nvmrc`.

### Fixed
- RSSI sensors `device_class` should be `signal_strength`.

Expand Down
3 changes: 3 additions & 0 deletions package-lock.json

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

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "nodesos_mqtt",
"version": "2.0.1",
"description": "MQTT client to report state of LifeSOS security system and devices.",
"repository": {
"type": "git",
"url": "https://github.com/bratanon/nodesos_mqtt.git"
},
"license": "MIT",
"author": "Emil Stjerneman <[email protected]>",
"main": "./dist/index.js",
Expand Down Expand Up @@ -56,5 +60,8 @@
"rimraf": "^5.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2"
},
"engines": {
"node": ">=20.0.0"
}
}

0 comments on commit b8a53d8

Please sign in to comment.