Release 1.2.3 #113
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: MJBarChart Tests | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 20 | |
- name: Setup Node and NPM | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install and Build | |
run: npm ci | |
- name: Prettier | |
run: npm run prettier | |
- name: Tests | |
run: npm run test:coverage | |
- name: Code Coverage | |
uses: greatwizard/coverage-diff-action@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
allowed-to-fail: false | |
badge-enabled: true | |
badge-threshold-green: 90 | |
badge-threshold-orange: 80 | |
- name: Generate Changelog | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
run: | | |
echo "# What's new ?" > CHANGELOG.md | |
git log --pretty='- %h %s by %aN' --no-merges $(git describe --tags --abbrev=0 @^)..@ >> CHANGELOG.md | |
- name: Pre Release | |
uses: softprops/action-gh-release@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
with: | |
body_path: CHANGELOG.md | |
draft: true |