Skip to content

Commit

Permalink
Merge pull request #264 from tree-sitter/new-release
Browse files Browse the repository at this point in the history
Prepare for 0.20.3 release
  • Loading branch information
hendrikvanantwerpen authored Oct 4, 2023
2 parents b1bf482 + 38f2749 commit c604297
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 39 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: build

on:
push:
branches: [main]
pull_request:

jobs:
Expand All @@ -10,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v3
with:
node-version: '12'
node-version: '18'

- name: Display Node versions
run: |
Expand All @@ -25,6 +26,10 @@ jobs:
- name: Install dependencies
run: npm install

- name: Display Tree-sitter version
run: |
npx tree-sitter --version
- name: Build and check generated files
run: |
npm run build
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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
34 changes: 0 additions & 34 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-typescript"
description = "Typescript grammar for the tree-sitter parsing library"
version = "0.20.2"
version = "0.20.3"
authors = ["Max Brunsfeld <maxbrunsfeld@gmail.com>"]
license = "MIT"
readme = "README.md"
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-typescript",
"version": "0.20.2",
"version": "0.20.3",
"description": "Typescript grammar for tree-sitter",
"keywords": [
"parser",
Expand Down

0 comments on commit c604297

Please sign in to comment.