Easily install Github workflows for common patterns such as publishing an npm module on pushes to master or pushing a Dockerfile.
This is not an official Github project.
npm install -g github-workflow-manager
Or to execute without installation:
npx github-workflow-manager install <some workflow>
gwm [command]
Commands:
gwm ls List installed workflows
gwm edit Edit an existing workflow
gwm install Install a github workflow
Options:
--help Show help [boolean]
--version Show version number [boolean]
Build and push a Dockerfile
Automatically build a Dockerfile at the root of your repository and push it to docker hub.
Build and publish new npm versions, using commits to increment version numbers.
Every time you make a commit, add one of the following tags before it:
type | version | commit message |
---|---|---|
patch release | ..x | "fix: " |
feature release | _.x.0 | "feat: " |
breaking release | x.0.0 | "BREAKING CHANGE: " |
When merged to master, these commits will be analyzed and new versions of your package will be published.
Run the test script in package.json
A github check with "npm run test" will be run on any pull request.
Check that all files are formatted with prettier
Any time a pull request is opened, github will make sure all files are formatted with prettier.
To ignore files, use a ".prettierignore" file in the root of the repository.