-
Notifications
You must be signed in to change notification settings - Fork 5.9k
feat(ci): publish dev builds to @coder/code-server-pr #4972
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
feat(ci): publish dev builds to @coder/code-server-pr #4972
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4972 +/- ##
=======================================
Coverage 71.58% 71.58%
=======================================
Files 29 29
Lines 1675 1675
Branches 373 373
=======================================
Hits 1199 1199
Misses 405 405
Partials 71 71 Continue to review full report at Codecov.
|
✨ code-server docs for PR #4972 is ready! It will be updated on every commit.
|
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.
🎉
In theory, this should work 🤔 But when I search It does publish but it's using the old name 🤔 I think I know why. This line: code-server/ci/steps/publish-npm.sh Line 123 in ed0a2a2
Needs to be after the code-server/ci/steps/publish-npm.sh Line 133 in ed0a2a2
Because the DEV_PACKAGE_NAME="code-server"
if [[ "$NPM_ENVIRONMENT" == "development" ]]; then
DEV_PACKAGE_NAME="@coder/code-server-pr"
fi
pushd release
npm pkg set name="$DEV_PACKAGE_NAME"
npm version "$NPM_VERSION"
popd Though if we do that, then we'll need the v7/v8 |
The Brew workflow will not trigger this |
Although the |
I'm all about those QOL improvements though 😛 Plus less tools/maintenance overhead only having to worry about |
Exactly! |
Looks like I may need to use a different npm token 🤔 |
I think this is the main (only?) argument in favor, but since we already have |
Fair point! If I use |
I think either way is not a big deal, the only pain point I can think of is if I have to release manually (like what happened last release 😢) then I would need to update node/npm so I can run it then downgrade it again (since code-server needs a lower version). |
Well technically you could upgrade |
🤯 Good point! That sounds like a pretty reasonable workaround IMO |
Well...you convinced me to use |
hahahahahaha well here is a heart for you <3 I look forward to the day we can remove |
@code-asher bump |
* feat(npm): use DEV_PACKAGE_NAME for development * feat(ci): use npm v7 in npm job * fixup: add npm version * fixup: always set package name * wip * fix: check for npm and npm v7 * fixup * fixup: move after release dir created * fixup: use jq * fixup: use jq correctly
This PR modifies the publish to npm workflow for development (commits to PRs and PRs) to use a different package name:
@coder/code-server-pr
as to not clutter the version list under thecode-server
name on npm.Notes
npm pkg
CLI command to modifypackage.json
nameFixes #4924
TODOs
jq
instead ofnpm