Skip to content

Commit 6cd808f

Browse files
committed
chore(release): v2.0.4
1 parent c97a57e commit 6cd808f

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,35 @@ jobs:
2626
update-brew:
2727
needs: publish-npm
2828
runs-on: ubuntu-latest
29-
if: ${{ secrets.HOMEBREW_TAP_TOKEN != '' }}
3029
permissions:
3130
contents: read
31+
env:
32+
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
3233
steps:
34+
- name: Skip if no Homebrew token
35+
if: env.HOMEBREW_TAP_TOKEN == ''
36+
run: echo "HOMEBREW_TAP_TOKEN not set; skipping brew update."
3337
- name: Resolve version
38+
if: env.HOMEBREW_TAP_TOKEN != ''
3439
run: |
3540
TAG="${GITHUB_REF_NAME}"
3641
VERSION="${TAG#v}"
3742
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
3843
- name: Download npm tarball
44+
if: env.HOMEBREW_TAP_TOKEN != ''
3945
run: |
4046
TARBALL_URL="https://registry.npmjs.org/@kfastov/tgcli/-/tgcli-${VERSION}.tgz"
4147
curl -fsSL "$TARBALL_URL" -o tgcli.tgz
4248
echo "TARBALL_URL=$TARBALL_URL" >> "$GITHUB_ENV"
4349
echo "SHA256=$(sha256sum tgcli.tgz | awk '{print $1}')" >> "$GITHUB_ENV"
4450
- uses: actions/checkout@v4
51+
if: env.HOMEBREW_TAP_TOKEN != ''
4552
with:
4653
repository: kfastov/homebrew-tap
4754
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
4855
path: homebrew-tap
4956
- name: Update formula
57+
if: env.HOMEBREW_TAP_TOKEN != ''
5058
env:
5159
FORMULA_PATH: homebrew-tap/Formula/tgcli.rb
5260
run: |
@@ -65,6 +73,7 @@ jobs:
6573
path.write_text(text)
6674
PY
6775
- name: Commit and push
76+
if: env.HOMEBREW_TAP_TOKEN != ''
6877
run: |
6978
cd homebrew-tap
7079
git config user.name "github-actions[bot]"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kfastov/tgcli",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"type": "module",
55
"description": "Telegram CLI + MCP server powered by MTProto and the official MCP SDK",
66
"main": "mcp-server.js",

0 commit comments

Comments
 (0)