Skip to content

Serverless badges from your package.json with Github Actions

License

Notifications You must be signed in to change notification settings

action-badges/package-json-badges

Repository files navigation

package-json-badges

Serverless badges from your package.json with Github Actions.

build coverage tag license node

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.

About

Serverless badges from your package.json with Github Actions

Resources

License

Stars

Watchers

Forks

Packages

No packages published