updated readme #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bump-version-and-tag | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
version-bump: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: checkout-code | |
uses: actions/checkout@v3 | |
- name: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: automate-version-bump | |
uses: 'phips28/gh-action-bump-version@master' | |
with: | |
# These words need to be part of a commit to trigger | |
# They are purposefully complex to avoid accidental triggers | |
major-wording: '(major),break:' | |
minor-wording: '(minor),feat:,feature:' | |
patch-wording: '(patch),fix:,bugfix:' | |
# needs to be empty for all pushes to be prerelease | |
rc-wording: '' | |
# defaulting to bump prerelease version--default is patch | |
default: prerelease | |
preid: 'rc' | |
tag-prefix: 'v' | |
target-branch: 'main' | |
commit-message: 'CI: bumps version to {{version}}' |