• TypeScript 100%
Find a file
renovate[bot] 190f3a4725
chore(deps): update dependency @biomejs/biome to v2.5.13 (#485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-14 00:35:53 -04:00
.github chore(deps): update actions/checkout action to v7 (#476) 2026-09-13 14:32:28 +09:00
dist feat: detect version from biome.json(c) (#365) 2026-01-10 23:06:18 +01:00
scripts refactor: use bun for development (#48) 2024-04-18 09:34:33 +02:00
src Support pnpm 11 (lockfile v9) (#434) 2026-08-28 11:55:11 +01:00
test/fixtures Support pnpm 11 (lockfile v9) (#434) 2026-08-28 11:55:11 +01:00
.bun-version chore(deps): update dependency @types/bun to v1.4.2 (#486) 2026-09-14 00:35:34 -04:00
.editorconfig chore: initial commit 2023-09-19 19:22:21 +02:00
.gitignore feat!: automatically detect biome version from dependencies (#39) 2024-01-10 16:20:08 +01:00
.npmrc feat: detect version from biome.json(c) (#365) 2026-01-10 23:06:18 +01:00
action.yaml chore: update node version (#397) 2026-03-11 17:12:09 -04:00
biome.json chore(deps): update dependency @biomejs/biome to v2.5.13 (#485) 2026-09-14 00:35:53 -04:00
bun.lock chore(deps): update dependency @biomejs/biome to v2.5.13 (#485) 2026-09-14 00:35:53 -04:00
CONTRIBUTING.md refactor: use bun for development (#48) 2024-04-18 09:34:33 +02:00
lefthook.yml chore: run biome on commit 2024-04-18 09:45:56 +02:00
LICENSE.md chore: initial commit 2023-09-19 19:22:21 +02:00
package.json chore(deps): update dependency @biomejs/biome to v2.5.13 (#485) 2026-09-14 00:35:53 -04:00
README.md chore: update package versions in README.md (#484) 2026-09-12 23:46:19 -04:00
tsconfig.json refactor: use bun for development (#48) 2024-04-18 09:34:33 +02:00

Setup Biome CLI in GitHub Actions

GitHub release (latest SemVer) Test Integrate

Setup Biome is a GitHub action that provides a cross-platform interface for setting up the Biome CLI in GitHub Actions runners.

Inputs

The following inputs are supported.

- name: Setup Biome
  uses: biomejs/setup-biome@v2
  with:

    # The version of the Biome CLI to install.
    # This input is optional and by default the version will be automatically
    # detected from the project's dependencies. If no version is found in the
    # project's dependencies, the latest version of the Biome CLI will be installed.
    # Example values: "2.5.13", "latest"
    version: ""

    # The GitHub token to use to authenticate GitHub API requests.
    # This input is optional and defaults to the job's GitHub token.
    # Example value: ${{ secrets.GITHUB_TOKEN }}
    token: ${{ github.token }}

    # The directory in which the lockfile will be looked for when automatically
    # determining the version of the Biome CLI to install. Defaults to the current
    # working directory.
    working-dir: ""

Examples

Automatic version detection

To automatically determine the Biome version to install, simply omit the version input.

The action first looks for the version of the @biomejs/biome dependency in the lockfiles of popular package managers (npm, yarn, pnpm, bun). If no version can be determined from lockfiles, it will next check package.json. If neither lockfiles nor package.json provide a version, the action will then look for a declared version in the project's Biome configuration file (it extracts the version from the $schema field). If no version is found after these checks, the action installs the latest version of the Biome CLI.

- name: Setup Biome CLI
  uses: biomejs/setup-biome@v2

- name: Run Biome
  run: biome ci

Important

We recommend that you pin the version of @biomejs/biome in your project's dependencies. If you provide a semver range, and automatic version detection falls back to reading the package.json file, the highest version within the range will be used. See the versioning documentation for more information.

Latest version

Setup the latest version of the Biome CLI.

- name: Setup Biome CLI
  uses: biomejs/setup-biome@v2
  with:
    version: latest

- name: Run Biome
  run: biome ci

Specific version

Install version 2.5.13 of the Biome CLI.

- name: Setup Biome CLI
  uses: biomejs/setup-biome@v2
  with:
    version: 2.5.13

- name: Run Biome
  run: biome ci

License

Copyright © 2023, Nicolas Hedger. Released under the MIT License.