Skip to content

Commit

Permalink
Fix usage of semver
Browse files Browse the repository at this point in the history
Update list of nodejs versions for CI tests
  • Loading branch information
perbergland committed May 4, 2024
1 parent 444ecd8 commit 270833a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

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

steps:
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion node/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ const path = require("path");
const pkgPath = path.join(__dirname, "../package.json");
const SemVer = require("semver");

module.exports = new SemVer(
module.exports = SemVer.parse(
process.env.REIFY_VERSION || fs.readJSON(pkgPath).version
);

0 comments on commit 270833a

Please sign in to comment.