-
-
Notifications
You must be signed in to change notification settings - Fork 5
fix: compatibility with Node 12 #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.github/workflows/ci.yml
Outdated
run: | | ||
npm run test | ||
|
||
# Load sec/index.js to check for syntax errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.mjs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still missed m
..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh... 😓
🎉 This PR is included in version 4.6.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR fixes a compatibility issue with Node.js v12 so that CI will fail if there is a compatibility issue with Node.js v12.
fixes #252
Memo:
I've modified and run CI several times and debugged with
echo $?
and it seems that in case of syntax errors it returns exit code 0 in tests using mocha 🤔When I try it locally, it seems the exit code is 0 only when using Node12.
I made sure we caught the syntax error by calling
node src/index.mjs
.