-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add job to publish to GPR #70
Conversation
Add a GitHub Actions job to publish the NPM package to the GitHub Package Registry.
Codecov Report
@@ Coverage Diff @@
## main #70 +/- ##
=======================================
Coverage 50.00% 50.00%
=======================================
Files 1 1
Lines 22 22
Branches 3 3
=======================================
Hits 11 11
Misses 9 9
Partials 2 2 Continue to review full report at Codecov.
|
To the best of my understanding, this seems to be working. Please have a peek at the published NPM package to see whether it looks fine or not. |
/cc @remcohaszing |
This is a VSCode extension, not an npm package. Are there any benefits of publishing a VSCode extension to an npm registry? |
It's not that the NPM package itself is useful or meant for consumption, but since we can't publish to the VS Marketplace on every pull request, I think publishing to GPR is a cheap way to validate at least certain aspects of the package. |
How do you see this being used? |
An NPM package will be built and published to GitHub Package Registry for every build, so we get some sort of validation of the package. It's not much, but better than nothing. |
If this is about building the package, then, doesn’t say |
I believe there is utility to being able to install non-stable releases of the package, yes. |
The extension is already built for each PR by the Example: https://github.com/remarkjs/vscode-remark/actions/runs/1599128469 |
That sounds like what you want to do is already possible @asbjorn? Or not? |
No, |
On process
PRs typically come with an argument for why they should be merged. This one did not. For more information, see the contribution docs on how to submit a PR, specifically the last point:
What you perceive as push-back I would call scrutiny, and expected scrutiny for that matter. The decision model used by the remark organization and the rest of the unified collective (and many other open source projects, such as Rust, Electron, and Node), is lazy consensus and consensus seeking.
I think it’s best to think of it as the inverse: pull requests don’t get merged unless there is agreement that it is a welcome addition On PR
Can you clarify for me what validation is done by
Am I correct in understanding availability through npm as unimportant, as you earlier said “It's not that the NPM package itself is useful or meant for consumption [...]” |
Okay.
There are server-side validations performed with If there is no harm caused by
"Unimportant" is an understatement. "Not significant" is more apt. It's a positive, although minor, byproduct. |
The main problem isn’t that publishing an npm package to the npm registry for each PR to apply such validations is a bad idea. The problem is that this isn’t an npm package. For example some differences are:
Whatever validations are done by publishing to an npm regitry, likely don’t apply to a VSCode extension. If you could give concrete examples or references of why this is a good idea, I’m definitely more open to it. |
Please explain what the benefits or checks are. I personally have no knowledge of any additional checks that |
As I don't have the time to sift through the client and server side source code of |
Add a GitHub Actions job to publish the NPM package to the GitHub Package Registry.
Initial checklist
Description of changes
As per actions/setup-node#243 (comment), an ephemeral scope can be set with
npm init -y --scope ${{ github.repository_owner }}
beforenpm publish
is executed. This PR is an attempt to implement this.