Skip to content

Automatically builds and releases a GitHub Action for Node.js by following GitFlow conventions

License

Notifications You must be signed in to change notification settings

spencerbeggs/gitflow-action-release-template

Repository files navigation

GitFlow Action Release Template

GitHub Actions has given developers a powerful toolkit to automate workflows and share them in the GitHub Marketplace. Unfortunatly, GitHub made some short-sighted decisions about how JavaScript actions have to be packaged to be published:

  • The action must be in a public repository
  • Each repository must contain a single action
  • The action's metadata file must be in the root directory

If you are building an action that has dependencies or compiling your code with Typescript and/or Babel, you need to check you node_modules folder and compiled code into the default branch of your repo, which defeats the purpose of Node.js module pattern, bloats the size of the final payload and adds a lot of noise to your development graph. This is because when GitHub pulls as JavaScript and action it simply checks out the entire source code for the release.

Fortunatly, we we can also specify actions as Docker images in public registries, which allows us to build the action code a when a new release is cut. This repository is a template that is configures a build and release workflow that automate the process if you simply follow the tried and true GitFlow branching model.

About

Automatically builds and releases a GitHub Action for Node.js by following GitFlow conventions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages