From 9b914885f1174b03cba72fe45787c290caf94ee6 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 22 Sep 2025 09:24:30 -0700 Subject: [PATCH] Fix issues preventing releases from successfully publishing (#4867) * Correct the path to the CLI npm package in release job * Specify a version for tree-sitter-language * Fix path to README in doc include --- .github/workflows/release.yml | 2 +- Cargo.toml | 3 ++- lib/binding_rust/lib.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 803a69ec..6dc78f09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,7 +78,7 @@ jobs: strategy: fail-fast: false matrix: - directory: [cli/npm, lib/binding_web] + directory: [crates/cli/npm, lib/binding_web] steps: - name: Checkout repository uses: actions/checkout@v5 diff --git a/Cargo.toml b/Cargo.toml index b2bf25ca..f8f3313e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -153,8 +153,9 @@ webbrowser = "1.0.5" tree-sitter = { version = "0.27.0", path = "./lib" } tree-sitter-generate = { version = "0.27.0", path = "./crates/generate" } -tree-sitter-language = { path = "./crates/language" } tree-sitter-loader = { version = "0.27.0", path = "./crates/loader" } tree-sitter-config = { version = "0.27.0", path = "./crates/config" } tree-sitter-highlight = { version = "0.27.0", path = "./crates/highlight" } tree-sitter-tags = { version = "0.27.0", path = "./crates/tags" } + +tree-sitter-language = { version = "0.1.4", path = "./crates/language" } diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index c641a5b9..23506e03 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(not(any(test, doctest)), doc = include_str!("../README.md"))] +#![cfg_attr(not(any(test, doctest)), doc = include_str!("./README.md"))] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(docsrs, feature(doc_cfg))]