Skip to content

Commit 60188a9

Browse files
committed
chore: update package.json to add act command and reorganize dependencies
1 parent e12bbbc commit 60188a9

File tree

4 files changed

+13909
-7892
lines changed

4 files changed

+13909
-7892
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CI/CD Pipeline
22

3+
env:
4+
IS_ACT: "false"
5+
36
on:
47
push:
58
branches:
@@ -116,10 +119,14 @@ jobs:
116119
if: always()
117120

118121
steps:
119-
- name: Checkout repository
122+
- name: Checkout repository (with full history and tags)
120123
uses: actions/checkout@v4
121124
with:
122125
fetch-depth: 0
126+
fetch-tags: true
127+
128+
- name: Fetch all tags explicitly (extra safety)
129+
run: git fetch --tags --force
123130

124131
- name: Send Telegram notification
125132
env:
@@ -145,11 +152,7 @@ jobs:
145152
STATUS="❌ *Deploy failed*"
146153
fi
147154
148-
VERSION=$(git tag --points-at HEAD)
149-
if [ -z "$VERSION" ]; then
150-
VERSION=$(git rev-parse --short HEAD)
151-
fi
152-
155+
VERSION=$(git describe --tags --abbrev=0 || git rev-parse --short HEAD)
153156
BRANCH=$(git rev-parse --abbrev-ref HEAD)
154157
COMMIT=$(git rev-parse --short HEAD)
155158
REPO_URL="https://github.com/$GITHUB_REPOSITORY"
@@ -163,7 +166,7 @@ jobs:
163166
👤 *Author:* $LAST_AUTHOR
164167
🔗 *Repo:* $REPO_URL"
165168
166-
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
167-
-d chat_id="${TELEGRAM_CHAT_ID}" \
168-
-d text="$MESSAGE" \
169-
-d parse_mode=Markdown
169+
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
170+
-d "chat_id=${TELEGRAM_CHAT_ID}" \
171+
-d "text=$MESSAGE" \
172+
-d "parse_mode=Markdown"

.prettierignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ pnpm-lock.yaml
2121
coverage/
2222
test-results/
2323

24-
# Ignore general JSON/YAML in project root if not overridden
25-
*.json
26-
*.yml
27-
*.yaml
28-
2924
# Ignore editor settings (unless overridden in .prettierrc)
3025
.vscode/
3126
.idea/

0 commit comments

Comments
 (0)