Skip to content

Add test coverage report to README.md and Github actions #89

Add test coverage report to README.md and Github actions

Add test coverage report to README.md and Github actions #89

name: Auto tag based on commit msg
on:
pull_request: # only run on PR otherwise bot can't commit to protected branch
types: [ closed ]
branches: ['develop']
jobs:
build:
name: 'Bump version and commit package.json'
runs-on: ubuntu-latest
environment: production
if: |
github.event.pull_request.merged == true
steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v3'
with:
token: ${{ secrets.BOT_USER_TOKEN }}
ref: 'develop'
- name: 'Automated Version Bump'
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
env:
GITHUB_TOKEN: ${{ secrets.BOT_USER_TOKEN }}
with:
patch-wording: '[npm release]'
tag-prefix: 'v'
target-branch: 'develop'
call-npm-publish-workflow:
needs: build
if: "startsWith(github.event.pull_request.title, '[npm publish]')"
uses: ./.github/workflows/npm-publish.yml
secrets: inherit