Skip to content

Commit

Permalink
Merge pull request #164 from tree-sitter/new-release
Browse files Browse the repository at this point in the history
Prepease for v0.20.2 release
  • Loading branch information
hendrikvanantwerpen authored Oct 5, 2023
2 parents 83044af + 51c8f05 commit 2b57cd9
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 36 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Publish

on:
push:
tags:
- v*

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0

jobs:
publish-crate:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Verify crate
run: cargo publish --dry-run

- name: Publish crate
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

publish-npm:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"

- name: Verify package
run: npm publish --dry-run

- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish

create-release:

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
body: |
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).
token: ${{ secrets.GITHUB_TOKEN }}
33 changes: 0 additions & 33 deletions .github/workflows/publish_crate.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tree-sitter-java"
description = "Java grammar for the tree-sitter parsing library"
version = "0.20.0"
version = "0.20.2"
authors = [
"Douglas Creager <[email protected]>",
"Ayman Nadeem <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := 0.19.1
VERSION := 0.20.2

# Repository
SRC_DIR := src
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tree-sitter-java",
"version": "0.19.1",
"version": "0.20.2",
"description": "Java grammar for tree-sitter",
"main": "bindings/node",
"keywords": [
Expand Down

0 comments on commit 2b57cd9

Please sign in to comment.