Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 40a401d

Browse files
authored
Merge branch 'tree-sitter:master' into master
2 parents a92167c + 2b57cd9 commit 40a401d

File tree

5 files changed

+77
-36
lines changed

5 files changed

+77
-36
lines changed

.github/workflows/publish.yml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
CARGO_INCREMENTAL: 0
11+
12+
jobs:
13+
publish-crate:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Install Rust
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
toolchain: stable
25+
profile: minimal
26+
override: true
27+
28+
- name: Verify crate
29+
run: cargo publish --dry-run
30+
31+
- name: Publish crate
32+
run: cargo publish
33+
env:
34+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
35+
36+
publish-npm:
37+
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v3
43+
44+
- name: Install Node
45+
uses: actions/setup-node@v3
46+
with:
47+
node-version: 18
48+
registry-url: "https://registry.npmjs.org"
49+
50+
- name: Verify package
51+
run: npm publish --dry-run
52+
53+
- name: Publish package
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
run: npm publish
57+
58+
create-release:
59+
60+
runs-on: ubuntu-latest
61+
62+
permissions:
63+
contents: write
64+
65+
steps:
66+
- name: Checkout repository
67+
uses: actions/checkout@v3
68+
69+
- name: Create GitHub release
70+
uses: ncipollo/release-action@v1
71+
with:
72+
body: |
73+
Find tree-sitter-java ${{ github.ref_name }} on [crates.io](https://crates.io/crates/tree-sitter-java) or [NPM](https://www.npmjs.com/package/tree-sitter-java).
74+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish_crate.yml

-33
This file was deleted.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-java"
33
description = "Java grammar for the tree-sitter parsing library"
4-
version = "0.20.0"
4+
version = "0.20.2"
55
authors = [
66
"Douglas Creager <dcreager@dcreager.net>",
77
"Ayman Nadeem <aymannadeem@github.com>",

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION := 0.19.1
1+
VERSION := 0.20.2
22

33
# Repository
44
SRC_DIR := src

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tree-sitter-java",
3-
"version": "0.19.1",
3+
"version": "0.20.2",
44
"description": "Java grammar for tree-sitter",
55
"main": "bindings/node",
66
"keywords": [

0 commit comments

Comments
 (0)