Provides a typical workflow for packages here at bhoos
- Checkout repo
- Setup, Test and Build
- Prepare Patch or Minor release version
- Commit and push update to respective branch and the latest branch
- Publish update to github package registry as
next
version - Create a Draft Release for publishing to production
- Update package registry tag next to latest version to be used in production
on:
push:
branches:
- minor
- patch
release:
types: [published]
jobs:
package-release:
runs-on: ubuntu-latest
steps:
- name: Use Bhoos release action
uses: bhoos/action-release@v1
env:
# use PERSONAL_ACCESS_TOKEN as secrets.GITHUB_TOKEN is limited to current repository
NPM_PKG_GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}