Skip to content

Commit

Permalink
Merge pull request #413 from github/lang-releases
Browse files Browse the repository at this point in the history
Release all language crates
  • Loading branch information
hendrikvanantwerpen authored Mar 6, 2024
2 parents 7b15ca4 + f1d2ef5 commit e6e53b6
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 9 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-tree-sitter-stack-graphs-python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish tree-sitter-stack-graphs-python release

on:
push:
tags:
- tree-sitter-stack-graphs-python-v*

jobs:
publish-crate:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CRATE_DIR: './languages/tree-sitter-stack-graphs-python'
steps:
- name: Install Rust environment
uses: hecrj/setup-rust-action@v1
- name: Checkout repository
uses: actions/checkout@v3
# TODO Verify the crate version matches the tag
- name: Test crate
run: cargo test --all-features
working-directory: ${{ env.CRATE_DIR }}
- name: Verify publish crate
run: cargo publish --dry-run
working-directory: ${{ env.CRATE_DIR }}
- name: Publish crate
run: cargo publish
working-directory: ${{ env.CRATE_DIR }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
create-release:
needs: publish-crate
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 more info on all releases at https://crates.io/crates/tree-sitter-stack-graphs-python.
token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 8 additions & 2 deletions languages/tree-sitter-stack-graphs-java/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## v0.3.0 -- 2024-03-06

## [0.2.0] - 2023-03-21
The `tree-sitter-stack-graphs` is updated to `v0.8`.

### Changed

- The `cli` feature is now required to install the CLI.

## v0.2.0 -- 2023-03-21

### Added

Expand Down
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-java/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree-sitter-stack-graphs-java"
version = "0.2.0"
version = "0.3.0"
description = "Stack graphs for the Java programming language"

homepage = "https://github.com/github/stack-graphs/tree/main/languages/tree-sitter-stack-graphs-java"
Expand Down
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-java = "0.2.0"
tree-sitter-stack-graphs-java = "0.3"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-java/*/) for more details on how to use this library.
Expand Down
4 changes: 4 additions & 0 deletions languages/tree-sitter-stack-graphs-javascript/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.1.0 -- 2024-03-06

Initial release.
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-javascript = "0.1.0"
tree-sitter-stack-graphs-javascript = "0.1"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-javascript/*/) for more details on how to use this library.
Expand Down
4 changes: 4 additions & 0 deletions languages/tree-sitter-stack-graphs-python/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.1.0 -- 2024-03-06

Initial release.
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-python = "0.1.0"
tree-sitter-stack-graphs-python = "0.1"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-python/*/) for more details on how to use this library.
Expand Down
14 changes: 13 additions & 1 deletion languages/tree-sitter-stack-graphs-typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
## v0.2.0 -- 2024-03-06

The `tree-sitter-stack-graphs` is updated to `v0.8`.

### Added

- An experimental VSCode LSP plugin that supports code navigation based on the stack graph rules. _Purely an experiment, not ready for serious use!_ Requires the `lsp` feature to be enabled.

### Changed

- Various improvements to the rules for imports and packages.

## v0.1.0 -- 2023-01-27

### Added

Expand Down
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-typescript/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree-sitter-stack-graphs-typescript"
version = "0.1.0"
version = "0.2.0"
description = "Stack graphs definition for TypeScript using tree-sitter-typescript"
readme = "README.md"
keywords = ["tree-sitter", "stack-graphs", "typescript"]
Expand Down
2 changes: 1 addition & 1 deletion languages/tree-sitter-stack-graphs-typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use this library, add the following to your `Cargo.toml`:

```toml
[dependencies]
tree-sitter-stack-graphs-typescript = "0.1.0"
tree-sitter-stack-graphs-typescript = "0.2"
```

Check out our [documentation](https://docs.rs/tree-sitter-stack-graphs-typescript/*/) for more details on how to use this library.
Expand Down

0 comments on commit e6e53b6

Please sign in to comment.