Serverless badges from your package.json
with Github Actions.
Examples:
name: Make package.json Badges
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: action-badges/[email protected]
with:
branch-name: badges
- name: Make version Badge
uses: action-badges/[email protected]
with:
file-name: package-version.svg
badge-branch: badges
github-token: '${{ secrets.GITHUB_TOKEN }}'
integration: version
- name: Make license badge
uses: action-badges/[email protected]
with:
file-name: package-license.svg
badge-branch: badges
github-token: '${{ secrets.GITHUB_TOKEN }}'
integration: license
- name: Make node version badge
uses: action-badges/[email protected]
with:
file-name: package-node-version.svg
badge-branch: badges
github-token: '${{ secrets.GITHUB_TOKEN }}'
integration: node-version
All of the standard action-badges parameters can also be used.