Intro to GH Actions
Guide to Conventional Commits
commit-and-tag-version
Docs
- Workflow should run when triggered manually
- Workflow should output "hello world" to the console when run
- Workflow should only run on a specific condition
- Workflow should check out the repository
- Workflow should install dependencies when run
- Bonus: Implement dependency caching
- Workflow should run on push to all branches other than "main"
- Workflow should run on pull requests to 'main'
- Workflow should lint, test, and build the package when run
- Bonus: Test for multiple node versions
- Bonus: Limit Concurrency
- Workflow should run on push to the "main" branch
- Workflow shoul use the repository secrets (NPM_TOKEN, GITHUB_TOKEN)
- Workflow should publish the package to npm when run
- TIP: If you dont bump the version, publish will fail (run
npm run version
before pushing)
- Workflow should run on push to the "stage" branch
- Workflow should publish to the Github Package Registry when run, with a tag of
next
- Workflow should not publish to npm when run
- TIP: If you dont bump the version, publish will fail (run
npm run version
before pushing)
- Workflow should run on pull request to the "stage" branch
- Workflow should use 'commit-and-tag-version' to bump the version
- Workflow should push the version update to the current branch to update the PR
- Workflow should not publish to anything when run
- Workflow should run on push to the "main" branch
- Workflow should run tests and generate coverage reports
- Workflow should publish reports to a separate repo
- Reports should be put in a subdirectory matching the reporting repo's name, creating if none exists