Skip to content

Commit fad7a6b

Browse files
techsavvyashclaude
andcommitted
chore: initialize version to 0.0.1 and add release workflow
- Set initial version to 0.0.1 - Add GitHub Actions workflow for npm publishing on release - Workflow runs tests before publishing - Uses npm provenance for supply chain security To publish: Create a GitHub release, workflow will automatically publish to npm (requires NPM_TOKEN secret) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3e9dca1 commit fad7a6b

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed

.github/workflows/release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Setup Bun
14+
uses: oven-sh/setup-bun@v2
15+
with:
16+
bun-version: latest
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
23+
- name: Install dependencies
24+
run: bun install
25+
26+
- name: Run typecheck
27+
run: bun run typecheck
28+
29+
- name: Run tests
30+
run: bun run test
31+
32+
publish-npm:
33+
needs: test
34+
runs-on: ubuntu-latest
35+
permissions:
36+
contents: read
37+
id-token: write
38+
39+
steps:
40+
- uses: actions/checkout@v4
41+
42+
- name: Setup Bun
43+
uses: oven-sh/setup-bun@v2
44+
with:
45+
bun-version: latest
46+
47+
- name: Setup Node.js
48+
uses: actions/setup-node@v4
49+
with:
50+
node-version: 20
51+
registry-url: "https://registry.npmjs.org"
52+
53+
- name: Install dependencies
54+
run: bun install
55+
56+
- name: Build
57+
run: bun run build
58+
59+
- name: Publish to npm
60+
run: npm publish --provenance --access public
61+
env:
62+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "termwright",
3-
"version": "0.2.0",
3+
"version": "0.0.1",
44
"description": "Puppeteer for terminals - programmatic terminal control for AI agents",
55
"type": "module",
66
"main": "./dist/index.js",

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function stripAnsi(str: string): string {
126126
const server = new Server(
127127
{
128128
name: "termwright",
129-
version: "0.2.0",
129+
version: "0.0.1",
130130
},
131131
{
132132
capabilities: {

0 commit comments

Comments
 (0)