@semcelik/github-action-playground

playground

Usage no npm install needed!

<script type="module">
  import semcelikGithubActionPlayground from 'https://cdn.skypack.dev/@semcelik/github-action-playground';
</script>

README

github-action-playground

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

workflow samples

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