question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider using npm distribution channels for early access releases

See original GitHub issue

Is your feature request related to a problem? Please describe. Currently it is difficult for users to test changes on main without a published module. We often go months without a release, which can make it hard for users to keep up with changes as they are happening.

See: https://github.com/cloudevents/sdk-javascript/issues/385#issuecomment-786376145

Describe the solution you would like to see Use npm distribution channels to provide early access to the module as, for example, cloudevents@canary. This would also entail modifying our publishing process via release-please, or some other defined process to determine how and when to publish a module. If this is to be automated, there is an unfortunate side effect in that we will need to provide npm publishing credentials to the repository config.

Additional context npm distribution channels: https://docs.npmjs.com/cli/v7/commands/npm-dist-tag some background: https://docs.npmjs.com/cli/v7/commands/npm-dist-tag

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
PSanetracommented, Nov 4, 2022

Just as a hint to tooling: I have written a cli tool that also supports prerelease counters: https://github.com/PSanetra/git-semver#examples-1 The next version is calculated based on previous git tags and recent conventional commits.

1reaction
lholmquistcommented, Mar 4, 2021

+1 to using the canary tag.

I know npm now has the “automation tokens” that can be enabled, https://github.blog/changelog/2020-10-02-npm-automation-tokens/, but haven’t used them yet.

I guess in my mind, we would publish to the canary tag after every merge(automated with some action), but would still want release-please to create a PR for the “next real release” which we would merge manually when it is time for a releae like we are currently doing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publishing on distribution channels - semantic-release
This recipe will walk you through a simple example that uses distribution channels to make releases available only to a subset of users,...
Read more >
One simple trick for JavaScript package maintainers to avoid ...
How to make use of npm's package distribution tags to create release channels just like Google Chrome's. Software releases are exciting for ...
Read more >
Using npm distribution tags the right way - DEV Community ‍ ‍
I learnt a lot about npm package distribution tags at work in the past couple of weeks and I thought... Tagged with npm,...
Read more >
Adding dist-tags to packages - npm Docs
Distribution tags (dist-tags) are human-readable labels that you can use to organize and label different versions of packages you publish. dist-tags ...
Read more >
Publishing a beta or alpha version to NPM | by Kevin Kreuzer
So how do we deploy beta versions with NPM? How to deploy a beta version. After we have implemented our new feature the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found