From 41bf66dcb16d373f4bc94f38566ea75572ab8bb6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 26 Sep 2026 15:58:14 +0000 Subject: [PATCH 1/2] Publish to repository-prototype from CI on changes to main Calls repository-prototype's reusable publish workflow when src/ or bats.toml changes on main, so publishing no longer needs a local upload. bats upload generates docs/ and refuses a dirty working tree, so docs/ is now ignored. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WSPo3txc6jHUFaXmBCNJhu --- .github/workflows/publish.yml | 11 +++++++++++ .gitignore | 1 + 2 files changed, 12 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..13c7673 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,11 @@ +# Publishes this package to bats-lang/repository-prototype when src/ or +# bats.toml changes on main. See PUBLISHING-SETUP.md there. +name: publish +on: + push: + branches: [main] + paths: ['src/**', 'bats.toml'] +jobs: + publish: + uses: bats-lang/repository-prototype/.github/workflows/publish.yml@main + secrets: inherit diff --git a/.gitignore b/.gitignore index ad2d364..a8e47fe 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ release/ _bats_* bats_modules/ bats.lock +docs/ From fdd7f5c095260d3c1cf43a4a07d414246d8c3758 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 26 Sep 2026 16:08:56 +0000 Subject: [PATCH 2/2] Ignore bats's generated files: build/ dist/ tests/dynamic/run.sh uploads this checkout after CI's bats lock and bats check, and bats upload (like the Rust bats) now refuses a working tree with untracked files. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WSPo3txc6jHUFaXmBCNJhu --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index a8e47fe..07fe2e0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ _bats_* bats_modules/ bats.lock docs/ +build/ +dist/