curaOS / source

Start a solid foundation of tools for creators+builders.
https://cura.run
15 stars 13 forks source link

Setup CI for deployment of packages #120

Closed vahiwe closed 2 years ago

vahiwe commented 2 years ago

Overview

This project needs a CI that automates the deployment of the packages based on commit messages. Any new change to a specific package should trigger the bump and publish.

Tasks

bestatigen commented 2 years ago

This project needs a CI that automates the deployment of the packages.

Yes, based on commit messages (see Semantic Release), but being this a monorepo I found Semantic Release Monorepo). Open to different workflows if you have any other proposals.

Any new commit with a change to package.json will publish the packages.

It's actually "any new change to a specific package" that should trigger the bump and publish.

The release functionality on GitHub could also be used to trigger the deployment.

At the moment builds are automatically deployed to Vercel, either on master or on a pull request for testing.

An automation token needs to be generated for authentication purposes.

You probably only need an NPM token for this; We can see if there is anything else necessary and set it up.


The goal is also to make good use of new yarn functionalities, like the release flow, and for that, We should try to upgrade to the latest yarn and make sure it doesn't break anything of what we have already, as it introduces a few major changes.

Thanks! 🙂