Diff
1diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
2new file mode 100644
3index 0000000000000000000000000000000000000000..2a75edab5560e28328e5fe11ab1ea428405da9d3
4--- /dev/null
5+++ b/.github/workflows/publish.yml
6@@ -0,0 +1,24 @@
7+name: Publish
8+
9+on:
10+ push:
11+ tags:
12+ - "v*"
13+
14+jobs:
15+ publish:
16+ runs-on: ubuntu-latest
17+ permissions:
18+ contents: read
19+ id-token: write
20+ steps:
21+ - uses: actions/checkout@v6
22+ - uses: oven-sh/setup-bun@v2
23+ - uses: actions/setup-node@v6
24+ with:
25+ node-version: "24"
26+ registry-url: "https://registry.npmjs.org"
27+ - run: bun install
28+ - run: bun run build
29+ - run: npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version
30+ - run: npm publish --access public
31diff --git a/package.json b/package.json
32index d84e6b588f9ccdcc0b2ef8ca43ef3e7a1ca1c4d7..be7dc9f00d42e980219123776c9b8f56bf9133ff 100644
33--- a/package.json
34+++ b/package.json
35@@ -1,11 +1,17 @@
36 {
37- "name": "opencode-telegram",
38+ "name": "@theedgeofrage/opencode-telegram",
39 "version": "0.1.0",
40 "type": "module",
41- "private": true,
42+ "main": "dist/main.js",
43+ "types": "dist/main.d.ts",
44+ "files": [
45+ "dist"
46+ ],
47 "scripts": {
48+ "build": "tsc",
49 "typecheck": "tsc --noEmit",
50- "lint": "eslint ."
51+ "lint": "eslint .",
52+ "prepublishOnly": "bun run build"
53 },
54 "dependencies": {
55 "@opencode-ai/plugin": "^1.3.0",