This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Merge pull request #474 from github/bump-typescript-version #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish tree-sitter-stack-graphs-typescript release | |
| on: | |
| push: | |
| tags: | |
| - tree-sitter-stack-graphs-typescript-v* | |
| jobs: | |
| publish-crate: | |
| runs-on: ubuntu-latest | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: 0 | |
| CRATE_DIR: './languages/tree-sitter-stack-graphs-typescript' | |
| steps: | |
| - name: Install Rust environment | |
| uses: hecrj/setup-rust-action@v1 | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # 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@v4 | |
| - 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-typescript. | |
| token: ${{ secrets.GITHUB_TOKEN }} |