How to share code? #427
Replies: 8 comments
-
We're currently taking the first option in |
Beta Was this translation helpful? Give feedback.
-
Summary of discussion from CSIWG2:
Alternatives
|
Beta Was this translation helpful? Give feedback.
-
There's a lot to like about installing directly from GitHub, if it negates the need for a publish step for all our packages. We'd need to think about:
We also lose:
|
Beta Was this translation helpful? Give feedback.
-
It looks like there's a GitHub-created action to publish GitHub releases. It includes a
Doesn't this depend on whether the tool specifically makes use of the npm registry? Wouldn't we still use the |
Beta Was this translation helpful? Give feedback.
-
Useful!
Yes, it's good to raise this distinction, I got a bit confused by mentioning NPM audit. We can use a subset of NPM's / Yarn's CLI, but not features that rely on the package existing on the NPM registry. For example we wouldn't be able to run the following commands against our packages since they wouldn't be available on the reigstry: |
Beta Was this translation helpful? Give feedback.
-
I've experimented with depending directly on a GitHub repo in this AR PR. |
Beta Was this translation helpful? Give feedback.
-
It looks like Dependabot supports bumping GitHub repo dependencies as well, which is handy 🙂. |
Beta Was this translation helpful? Give feedback.
-
I've done some further investigation into GitHub dependencies. Turns out you can specify semver ranges - these use the |
Beta Was this translation helpful? Give feedback.
-
To summarise a conversation that happened in chat:
package.json
from github directly?~/.npmrc
to install anything from github packages@guardian
namespace clash with existing npmjs scopeBeta Was this translation helpful? Give feedback.
All reactions