@thxmxx/telegram-mcp 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yaml +25 -13
- package/README.md +8 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
if: github.event_name == 'push' || github.event.pull_request.merged == true
|
|
13
13
|
runs-on: ubuntu-latest
|
|
14
14
|
permissions:
|
|
15
|
-
contents: write
|
|
15
|
+
contents: write
|
|
16
16
|
id-token: write
|
|
17
17
|
|
|
18
18
|
steps:
|
|
@@ -26,33 +26,44 @@ jobs:
|
|
|
26
26
|
node-version: 20
|
|
27
27
|
registry-url: https://registry.npmjs.org
|
|
28
28
|
|
|
29
|
-
- name:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- name: Determine version bump
|
|
33
|
-
id: bump
|
|
29
|
+
- name: Get commit message
|
|
30
|
+
id: msg
|
|
34
31
|
run: |
|
|
35
|
-
# Get the commit message that triggered this run
|
|
36
32
|
if [ "${{ github.event_name }}" = "pull_request" ]; then
|
|
37
|
-
|
|
33
|
+
echo "value=${{ github.event.pull_request.title }}" >> $GITHUB_OUTPUT
|
|
38
34
|
else
|
|
39
|
-
|
|
35
|
+
echo "value=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
|
|
40
36
|
fi
|
|
41
37
|
|
|
42
|
-
|
|
38
|
+
- name: Skip if docs-only
|
|
39
|
+
id: skip
|
|
40
|
+
run: |
|
|
41
|
+
MSG="${{ steps.msg.outputs.value }}"
|
|
42
|
+
if echo "$MSG" | grep -qiE "^docs(\(.+\))?:|^\[skip ci\]|^chore: bump version"; then
|
|
43
|
+
echo "skip=true" >> $GITHUB_OUTPUT
|
|
44
|
+
else
|
|
45
|
+
echo "skip=false" >> $GITHUB_OUTPUT
|
|
46
|
+
fi
|
|
43
47
|
|
|
44
|
-
|
|
48
|
+
- name: Determine version bump
|
|
49
|
+
id: bump
|
|
50
|
+
if: steps.skip.outputs.skip == 'false'
|
|
51
|
+
run: |
|
|
52
|
+
MSG="${{ steps.msg.outputs.value }}"
|
|
45
53
|
if echo "$MSG" | grep -qiE "BREAKING CHANGE|!:"; then
|
|
46
54
|
echo "type=major" >> $GITHUB_OUTPUT
|
|
47
|
-
# feat → minor
|
|
48
55
|
elif echo "$MSG" | grep -qiE "^feat(\(.+\))?:"; then
|
|
49
56
|
echo "type=minor" >> $GITHUB_OUTPUT
|
|
50
|
-
# everything else → patch
|
|
51
57
|
else
|
|
52
58
|
echo "type=patch" >> $GITHUB_OUTPUT
|
|
53
59
|
fi
|
|
54
60
|
|
|
61
|
+
- name: Install dependencies
|
|
62
|
+
if: steps.skip.outputs.skip == 'false'
|
|
63
|
+
run: npm install
|
|
64
|
+
|
|
55
65
|
- name: Bump version
|
|
66
|
+
if: steps.skip.outputs.skip == 'false'
|
|
56
67
|
run: |
|
|
57
68
|
git config user.name "github-actions[bot]"
|
|
58
69
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
@@ -63,6 +74,7 @@ jobs:
|
|
|
63
74
|
git push
|
|
64
75
|
|
|
65
76
|
- name: Publish
|
|
77
|
+
if: steps.skip.outputs.skip == 'false'
|
|
66
78
|
run: npm publish --access public --provenance
|
|
67
79
|
env:
|
|
68
80
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -74,6 +74,14 @@ If you answer from the terminal, Telegram confirms it:
|
|
|
74
74
|
| `telegram_ask` | Ask a free-form question. Waits for reply. |
|
|
75
75
|
| `telegram_choose` | Show option buttons. Waits for a tap. |
|
|
76
76
|
|
|
77
|
+
## Updating
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx @thxmxx/telegram-mcp@latest init
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Re-runs the setup with the latest version — updates the MCP server and the `/use-telegram` slash command automatically.
|
|
84
|
+
|
|
77
85
|
## Requirements
|
|
78
86
|
|
|
79
87
|
- Node.js 18+
|