This GitHub Action installs jsonnet binaries. Installed binaries are:
- jsonnet
- jsonnetfmt
- jb
Source files are:
- https://github.com/google/go-jsonnet/releases
- https://github.com/jsonnet-bundler/jsonnet-bundler/releases
Refer to each repository to check licenses of binaries to install.
name: Jsonnet
on:
pull_request:
push:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: kobtea/setup-jsonnet-action@v3
- run: |
jb install
find . -type f | xargs -IFILE bash -c "jsonnetfmt FILE | diff -u FILE -"Install the dependencies
$ npm installFormat, test, and build the action
$ npm run allPackage for distribution
$ npm run bundleCommit the rebuilt dist/ directory and push a new tag:
$ git add dist
$ git commit -m "chore: rebuild dist for vX"
$ git tag vX
$ git push origin vXSee the versioning documentation