-
Notifications
You must be signed in to change notification settings - Fork 5.9k
fix: update npm-dev.yaml #4781
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
fix: update npm-dev.yaml #4781
Conversation
PR_NUMBER_AND_COMMIT_SHA: ${{ github.event.number }}-${{ github.event.pull_request.head.sha }} | ||
# Since this only runs on a merge into main, we can't use github.event.number | ||
# so we instead use the word "beta" and the PR merge commit SHA | ||
PR_NUMBER_AND_COMMIT_SHA: beta-${{ github.sha }} |
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.
I don't love using "beta" where you would expect a PR_NUMBER but this was the least invasive change I could think of. I didn't want to have to add another environment variable and make this more complicated than it needs to be.
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.
But then again, we could always change this to NPM_VERSION
but I don't know if that will make it more complicated. Open to ideas. Just wanted to open a fix quickly.
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.
My bad, I reviewed too quickly and missed this comment I think 😛
In case this is still relevant, I think it is a valid concern and NPM_VERSION
would describe what this variable is for perfectly.
Codecov Report
@@ Coverage Diff @@
## main #4781 +/- ##
=======================================
Coverage 69.18% 69.18%
=======================================
Files 29 29
Lines 1652 1652
Branches 363 363
=======================================
Hits 1143 1143
Misses 432 432
Partials 77 77 Continue to review full report at Codecov.
|
✨ Coder.com for PR #4781 deployed! It will be updated on every commit.
|
@im-coder-lg no, different fix. That should also be fixed though! |
I didn't think it through in my previous PR but since this workflow only runs on a merge into
main
, there is no PR number. So instead, we use the word "beta" and then we also have to grab a different SHA since there is no PR SHA.Prevents this from happening again: https://www.npmjs.com/package/code-server/v/4.0.1--
https://github.com/coder/code-server/runs/4903294989?check_suite_focus=true#step:3:16
Fixes N/A