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
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
permissions:
contents: write
id-token: write
packages: write

jobs:
release:
Expand Down Expand Up @@ -36,11 +37,24 @@ jobs:
- name: Test
run: npm test

- name: Publish to npm (trusted publishing via OIDC)
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Configure GitHub Packages registry
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com/

- name: Publish to GitHub Packages
run: |
npm pkg set "name=@that-github-user/thinktank-ai"
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ node_modules/
dist/
.thinktank/
*.tgz

__pycache__/
*.pyc
examples/*/package-lock.json
scripts/batch-runs*.sh
6 changes: 5 additions & 1 deletion src/commands/run.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ describe("preflightTestRun", () => {
it("returns warning when command is not found", async () => {
const result = await preflightTestRun("nonexistent-command-xyz", process.cwd());
assert.ok(result);
assert.ok(result.includes("failed on the current branch"));
// Exit 127 (command not found) gets a specific message
assert.ok(
result.includes("Test command not found") || result.includes("failed on the current branch"),
`Expected exit-127 or generic failure message, got: ${result.substring(0, 100)}`,
);
});
});
Loading