Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: Release
on:
push:
tags:
- "*-beta.*"
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
workflow_dispatch:
inputs:
tag:
description: Existing beta release tag to publish (for example, 0.1.0-beta.5)
description: Existing release tag to publish (for example, 0.1.0)
required: true
type: string

Expand Down Expand Up @@ -35,11 +36,11 @@ jobs:

- run: sudo apt-get update && sudo apt-get install -y ripgrep

- name: Verify beta release tag
- name: Verify release tag
shell: bash
run: |
if [[ ! "$RELEASE_TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+$ ]]; then
echo "Release tag must match <major>.<minor>.<patch>-beta.<number>." >&2
if [[ ! "$RELEASE_TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-beta\.[0-9]+)?$ ]]; then
echo "Release tag must match <major>.<minor>.<patch> or <major>.<minor>.<patch>-beta.<number>." >&2
exit 1
fi

Expand Down Expand Up @@ -428,6 +429,10 @@ jobs:
NPM_CONFIG_REGISTRY: https://registry.npmjs.org
run: |
version="$RELEASE_TAG"
npm_tag=latest
if [[ "$version" == *-beta.* ]]; then
npm_tag=beta
fi
packages=(
tui-test-darwin-arm64
tui-test-darwin-x64
Expand All @@ -449,7 +454,7 @@ jobs:
if npm view "$name@$version" version >/dev/null 2>&1; then
echo "$name@$version is already published"
else
npm publish "$tarball" --access public --provenance --tag beta
npm publish "$tarball" --access public --provenance --tag "$npm_tag"
fi
done

Expand Down Expand Up @@ -533,10 +538,11 @@ jobs:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh release create "$RELEASE_TAG" \
--generate-notes \
--prerelease \
artifacts/*
release_args=(--generate-notes)
if [[ "$RELEASE_TAG" == *-beta.* ]]; then
release_args+=(--prerelease)
fi
gh release create "$RELEASE_TAG" "${release_args[@]}" artifacts/*

update-homebrew:
name: Open Homebrew formula update
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ default-members = [
resolver = "2"

[workspace.package]
version = "0.1.0-beta.5"
version = "0.1.0"
edition = "2021"
rust-version = "1.90"
license = "MIT"
Expand Down
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
<a href="#configuration">Configuration</a>
</p>

> [!IMPORTANT]
> `tui-test` is undergoing a major rewrite. These docs cover the beta releases.

## Installation

### CLI
Expand All @@ -33,13 +30,12 @@ brew install tui-test
macOS and Linux:

```sh
curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/microsoft/tui-test/main/install/install.sh | TUI_TEST_VERSION=beta sh
curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/microsoft/tui-test/main/install/install.sh | sh
```

Windows:

```powershell
$env:TUI_TEST_VERSION = "beta"
irm https://raw.githubusercontent.com/microsoft/tui-test/main/install/install.ps1 | iex
```

Expand All @@ -49,9 +45,9 @@ You can also download a binary from [GitHub Releases](https://github.com/microso

| Language | Install | Reference |
| --- | --- | --- |
| Rust 1.90+ | `cargo add tui-test-rs@0.1.0-beta.5` | [docs.rs](https://docs.rs/tui-test-rs/latest/tui_test/) |
| Python 3.8+ | `pip install --pre tui-test` | [Python API](bindings/python/README.md) |
| Node 20+ | `npm install @microsoft/tui-test@beta` | [JavaScript API](bindings/js/README.md) |
| Rust 1.90+ | `cargo add tui-test-rs@0.1.0` | [docs.rs](https://docs.rs/tui-test-rs/latest/tui_test/) |
| Python 3.8+ | `pip install tui-test` | [Python API](bindings/python/README.md) |
| Node 20+ | `npm install @microsoft/tui-test` | [JavaScript API](bindings/js/README.md) |

Add the Rust `recording-raster` feature for APNG, GIF, and MP4 output. It uses installed fonts; `recording-font-jetbrains-mono*` bundles a font.

Expand Down
2 changes: 1 addition & 1 deletion bindings/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Control, inspect, and test terminal apps from JavaScript or TypeScript.
## Install

```sh
npm install @microsoft/tui-test@beta
npm install @microsoft/tui-test
```

Node 20+ is supported. The package is ESM only. Bun and Deno support is best effort. Deno 2 needs local `node_modules` and `--allow-ffi`.
Expand Down
Loading
Loading