nullstone icon indicating copy to clipboard operation
nullstone copied to clipboard

Auto publish module

Open BSick7 opened this issue 3 years ago • 0 comments

Every Nullstone module uses a small GitHub Actions workflow to publish new versions of modules. Additionally, this requires configuring a Nullstone API Key as a secret in each repo.

Instead, a module creator should be able to connect a module to a source repo. Also, the user should be able to configure the module with auto-publish with the following:

  • Auto-publish disabled.
  • Auto-publish on new semantic version tags pushed.
  • Auto-publish on new commits to default (master/main) branch. (Use --version=next-patch)
  • Auto-publish on commits in a PR (Use --version=next-build)

A module creator should be able to configure the following for auto-publish:

  • A list of files (globbing allowed) to watch. If any files change, a publish is triggered. (If users use this, they will typically use a single directory - e.g. tf/)
  • A list of files (globbing allowed) included in the published package. By default, this should include *.tf, *.tf.tmpl, and README.md.

BSick7 avatar Sep 26 '22 19:09 BSick7