/github-action-playground

just a playground

Primary LanguageTypeScript

github-action-playground

this project contains some github action workflows as a playground for myself

workflow samples

commit-author (created by me)

(on every push)

  • Checks commit's author email if it is end with @gmail.com

More Info

bump-and-release

(on push master)

  • Bumps version if merged pull request's commit message contains PATCH, MINOR, MAJOR prefix
  • Creates a tag due if version is bumped
  • Creates a release if new tag is generated

Notes: It uses Github's Personal Access Token due to trigger publish-to-npm workflow. Here is why

publish-to-npm

(on create new release)

  • Install dependencies (uses @actions/cache to restore it from previous run)
  • Create build and publishes to NPM

Notes: It uses NPM_AUTH_TOKEN due to publish without login