Setup action for the tree-sitter library & CLI
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-05 13:53:33 +03:00
cli fix(cli): support nightly tag 2026-10-05 13:53:33 +03:00
lib chore: bump cache action 2026-06-30 10:51:55 +03:00
.editorconfig feat: initial commit 2024-03-03 19:53:42 +02:00
action.yml fix: use correct version of cli,lib subactions 2025-12-11 10:54:17 +01:00
LICENSE feat: initial commit 2024-03-03 19:53:42 +02:00
README.md refactor(lib)!: build using cmake 2024-11-07 09:12:36 +02:00

Tree-sitter library & CLI setup

Options

install-cli:
  description: Install the CLI
  default: true
install-lib:
  description: Install the library
  default: true
tree-sitter-ref:
  description: A tree-sitter commit, tag, or branch
  default: latest
rust-toolchain:
  description: Rust toolchain
  default: stable

Example configuration

name: Generate

on:
  pull_request:

jobs:
  generate:
    name: Generate parser
    runs-on: ubuntu-latest
    steps:
      - uses: tree-sitter/setup-action@v2
        with:
          install-lib: false
      - run: tree-sitter generate