Skip to content
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

chore: fix npm publish logic #5493

Merged
merged 2 commits into from Aug 23, 2022
Merged

chore: fix npm publish logic #5493

merged 2 commits into from Aug 23, 2022

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Aug 23, 2022

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.

@jsjoeio jsjoeio requested a review from a team as a code owner August 23, 2022 16:02
@jsjoeio jsjoeio self-assigned this Aug 23, 2022
@jsjoeio jsjoeio added the rebase when passing Rebase and merge the PR automatically once all status checks have passed label Aug 23, 2022
coadler
coadler previously approved these changes Aug 23, 2022
@codecov
Copy link

codecov bot commented Aug 23, 2022

Codecov Report

Merging #5493 (dddfd22) into main (ccbf0be) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccbf0be...dddfd22. Read the comment docs.

@jsjoeio jsjoeio marked this pull request as draft August 23, 2022 16:16
auto-merge was automatically disabled August 23, 2022 16:16

Pull request was converted to draft

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Aug 23, 2022

@github-actions
Copy link

github-actions bot commented Aug 23, 2022

✨ code-server dev build published to npm for PR #5493!

  • Last publish status: success
  • Commit: dddfd22

To install in a local project, run:

npm install @coder/code-server-pr@5493

To install globally, run:

npm install -g @coder/code-server-pr@5493

@jsjoeio jsjoeio changed the title chore: clean cache on publish npm chore: fix npm publish logic Aug 23, 2022
@jsjoeio jsjoeio temporarily deployed to npm August 23, 2022 17:42 Inactive
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.
@jsjoeio jsjoeio marked this pull request as ready for review August 23, 2022 18:13
@jsjoeio jsjoeio temporarily deployed to npm August 23, 2022 18:19 Inactive
@jsjoeio jsjoeio merged commit d1acfad into main Aug 23, 2022
@jsjoeio jsjoeio deleted the jsjoeio/npm-cache branch August 23, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rebase when passing Rebase and merge the PR automatically once all status checks have passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants