Skip to content

fix(csv): add missing newline at end of file #17

fix(csv): add missing newline at end of file

fix(csv): add missing newline at end of file #17

name: Build, Update History and Release
on:
push:
branches: [main]
# Allow manual triggering
workflow_dispatch:
jobs:
build-history-release:
name: Build, Update History and Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Generate history file
run: npm run history
- name: Check for changes
id: git-check
run: |
git add README.md changes.svg
git diff --staged --quiet || echo "changes=true" >> $GITHUB_OUTPUT
- name: Commit changes if needed
if: steps.git-check.outputs.changes == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "GitHub Action"
git commit -m "docs: update README.md and changes.svg [skip ci]"
git push https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release