Update package.json #56
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: badges | |
on: | |
push: | |
# [push, pull_request] | |
# update README badge only if the README file changes | |
# or if the package.json file changes, or this file changes | |
branches: | |
- main | |
paths: | |
- README.md | |
- package.json | |
- .github/workflows/badges.yml | |
jobs: | |
badges: | |
name: Badges | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Update version badges 🏷 | |
run: npx -p dependency-version-badge update-badge typescript eslint prettier vitest vite | |
- name: Commit any changed files 💾 | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Updated badges | |
branch: main | |
file_pattern: README.md |