-
Notifications
You must be signed in to change notification settings - Fork 5.9k
chore: fix npm publish logic #5493
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
Codecov Report
@@ Coverage Diff @@
## main #5493 +/- ##
=======================================
Coverage 72.44% 72.44%
=======================================
Files 30 30
Lines 1673 1673
Branches 366 366
=======================================
Hits 1212 1212
Misses 398 398
Partials 63 63 Continue to review full report at Codecov.
|
Pull request was converted to draft
Sadly, this fix did not work: https://github.com/coder/code-server/runs/7977694661?check_suite_focus=true#step:4:19 |
npm changed the way the `npm view` command handles missing versions. Before it exited with a non-error. Now it errors. Ref: npm/cli#5035 This modifies the script logic to handle those new changes.
57d2cad
to
dddfd22
Compare
Description
After this landed npm/cli#5035, it broke our script. This PR catches the error thrown if the version is missing and handles it accordingly. I also cleaned up some of the output so the logs are easier to read.