Skip to content

aholachek/github-actions-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workflows that are currently work(flow)ing

  1. Run tests for prs & cache node_modules between builds
  2. Backmerge edge and staging branches after successful merge to master
  3. Automate release bump in any prs made to master based on the title of the pr (e.g. 0.5.3-release will run npm version 0.5.3.
  4. Publish to github packages on merge to master.

How to test

  1. Fork repo
  2. Checkout staging locally and commit some changes
  3. Make a pr from staging ==> master on github
  4. In github interface for the PR, rename commit to something like [MASTER RELEASE] or [MINOR RELEASE] (the default release on merge will be a patch otherwise):
  5. You should see a release version commit added to the list of commits for the pr.
  6. Once the tests pass, merge the pr into master
  7. Navigate to the workflow actions tag to see the release + backmerge into staging and edge in progress.
  8. Confirm that edge, staging and master all have the new release commmit.

Helpful resources

  1. action to run node script
  2. action to push branch back to repo
  3. caching
  4. caching examples
  5. workflow triggers