codeoverflow-org / nodecg-io

A NodeCG-bundle which implements Social Media API's in the NodeCG framework
https://nodecg.io
MIT License
108 stars 26 forks source link

Publish current development version in some format that can be consumed by npm #235

Closed hlxid closed 2 years ago

hlxid commented 3 years ago

Description

It would be nice if we could publish the current development version. That way we can generate bundles in the cli that can use those and you don't need to add your bundle, that relies on a development version, to the lerna.json (like in skates-bundles).

Some ideas on how me might do this:

Not sure yet which route we're going with...

vypxl commented 3 years ago

An idea: What about Github build artifacts? https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts

hlxid commented 3 years ago

Might be an option but GH Actions Artifacts has to my knowledge no way to always get the latest version with a static url. You would need to always update the url to include the id of an artifact of a recent run.

TimTechDev commented 3 years ago

I would prefer option b)

push compilation results to a separate repository

hlxid commented 2 years ago

Yeah, that's propably the way to go in combination with e.g. GitPkg because npm can't include a sub directory of a repository. Having the ability to test feature branches is also kinda nice.

hlxid commented 2 years ago

An advantage for publishing tarballs would be that we could publish the samples as tarballs too. We could then get them in the nodecg-io-cli in order to install them for production installations. We would still need to figure out how the TypeScript code can be built then, but we could more easily download the samples.

I don't really want to use an external service like GItPkg if I don't need to. I'm think for now we're going to do both: tarballs and the actual compilation results, so we can use what we want and still decide on one of them later. Unpacking the tarballs in the GItHub Actions step isn't too much of a hassle.