fix: publish 0.21.0 to registries

This commit is contained in:
Amaan Qureshi 2024-02-21 14:50:56 -05:00
parent 1c55abb530
commit a5b7c2a584
No known key found for this signature in database
GPG key ID: E67890ADC4227273
11 changed files with 96 additions and 29 deletions

76
.github/workflows/hotfix.yml vendored Normal file
View file

@ -0,0 +1,76 @@
name: Hotfix
on:
workflow_dispatch:
jobs:
lib:
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Publish `tree-sitter` (dry run)
run: cargo publish --dry-run -p tree-sitter
- name: Publish `tree-sitter`
run: cargo publish -p tree-sitter
- name: Publish `tree-sitter-loader` (dry run)
run: cargo publish --dry-run -p tree-sitter-loader
- name: Publish `tree-sitter-loader`
run: cargo publish -p tree-sitter-loader
- name: Publish `tree-sitter-config` (dry run)
run: cargo publish --dry-run -p tree-sitter-config
- name: Publish `tree-sitter-config`
run: cargo publish -p tree-sitter-config
- name: Publish `tree-sitter-highlight` (dry run)
run: cargo publish --dry-run -p tree-sitter-highlight
- name: Publish `tree-sitter-highlight`
run: cargo publish -p tree-sitter-highlight
- name: Publish `tree-sitter-tags` (dry run)
run: cargo publish --dry-run -p tree-sitter-tags
- name: Publish `tree-sitter-tags`
run: cargo publish -p tree-sitter-tags
- name: Publish `tree-sitter-cli` (dry run)
run: cargo publish --dry-run -p tree-sitter-cli
- name: Publish `tree-sitter-cli`
run: cargo publish -p tree-sitter-cli
- name: Re-build wasm file for `web-tree-sitter`
run: ./script/build-wasm
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Publish to npmjs.com
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
cd lib/binding_web
npm publish
cd ../../cli/npm
npm publish

4
Cargo.lock generated
View file

@ -1264,7 +1264,7 @@ dependencies = [
[[package]]
name = "tree-sitter"
version = "0.20.10"
version = "0.20.11"
dependencies = [
"bindgen",
"cc",
@ -1354,8 +1354,6 @@ dependencies = [
"serde",
"serde_json",
"tree-sitter",
"tree-sitter-highlight",
"tree-sitter-tags",
"which 6.0.0",
]

View file

@ -1,4 +1,4 @@
VERSION := 0.20.10
VERSION := 0.21.0
# install directory layout
PREFIX ?= /usr/local

View file

@ -55,23 +55,23 @@ webbrowser.workspace = true
which.workspace = true
[dependencies.tree-sitter]
version = "0.20.10"
version = "0.21.0"
path = "../lib"
[dependencies.tree-sitter-config]
version = "0.19.0"
version = "0.21.0"
path = "config"
[dependencies.tree-sitter-highlight]
version = "0.20.2"
version = "0.21.0"
path = "../highlight"
[dependencies.tree-sitter-loader]
version = "0.20.0"
version = "0.21.0"
path = "loader"
[dependencies.tree-sitter-tags]
version = "0.20.2"
version = "0.21.0"
path = "../tags"
[dev-dependencies]

View file

@ -1,7 +1,7 @@
[package]
name = "tree-sitter-loader"
description = "Locates, builds, and loads tree-sitter grammars at runtime"
version = "0.20.0"
version = "0.21.0"
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
@ -29,13 +29,5 @@ serde_json.workspace = true
which.workspace = true
[dependencies.tree-sitter]
version = "0.20.10"
version = "0.21.0"
path = "../../lib"
[dependencies.tree-sitter-highlight]
version = "0.20.2"
path = "../../highlight"
[dependencies.tree-sitter-tags]
version = "0.20.2"
path = "../../tags"

View file

@ -1,7 +1,7 @@
[package]
name = "tree-sitter-highlight"
description = "Library for performing syntax highlighting with Tree-sitter"
version = "0.20.2"
version = "0.21.0"
authors = [
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
"Tim Clem <timothy.clem@gmail.com>",
@ -24,5 +24,5 @@ regex.workspace = true
thiserror.workspace = true
[dependencies.tree-sitter]
version = "0.20.10"
version = "0.21.0"
path = "../lib"

View file

@ -12,8 +12,8 @@ to parse, to your `Cargo.toml`:
```toml
[dependencies]
tree-sitter-highlight = "^0.20"
tree-sitter-javascript = "0.19"
tree-sitter-highlight = "^0.21.0"
tree-sitter-javascript = "0.20.3"
```
Define the list of highlight names that you will recognize:

View file

@ -1,7 +1,7 @@
[package]
name = "tree-sitter"
description = "Rust bindings to the Tree-sitter parsing library"
version = "0.20.10"
version = "0.21.0"
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
@ -21,6 +21,7 @@ include = [
"/src/*.h",
"/src/*.c",
"/src/unicode/*",
"/src/wasm/*",
"/include/tree_sitter/api.h",
]

View file

@ -28,8 +28,8 @@ Then, add a language as a dependency:
```toml
[dependencies]
tree-sitter = "0.20.10"
tree-sitter-rust = "0.20.3"
tree-sitter = "0.21.0"
tree-sitter-rust = "0.20.4"
```
To then use a language, you assign them to the parser.

View file

@ -1,6 +1,6 @@
{
"name": "web-tree-sitter",
"version": "0.20.9",
"version": "0.21.0",
"description": "Tree-sitter bindings for the web",
"main": "tree-sitter.js",
"types": "tree-sitter-web.d.ts",

View file

@ -1,7 +1,7 @@
[package]
name = "tree-sitter-tags"
description = "Library for extracting tag information"
version = "0.20.2"
version = "0.21.0"
authors = [
"Max Brunsfeld <maxbrunsfeld@gmail.com>",
"Patrick Thomson <patrickt@github.com>",
@ -24,5 +24,5 @@ memchr.workspace = true
thiserror.workspace = true
[dependencies.tree-sitter]
version = "0.20.10"
version = "0.21.0"
path = "../lib"