Skip to content

Commit 48a34db

Browse files
committed
ci: move notify workflow to pnpm dlx
1 parent 093cddc commit 48a34db

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/notify.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
env:
1414
NODE_VERSION: 20
15+
PNPM_VERSION: 10.0.0
1516

1617
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
1718
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
@@ -37,8 +38,10 @@ jobs:
3738
with:
3839
node-version: ${{ env.NODE_VERSION }}
3940

40-
- name: Install dependencies
41-
run: npm install node-fetch
41+
- name: Setup pnpm
42+
uses: pnpm/action-setup@v4
43+
with:
44+
version: ${{ env.PNPM_VERSION }}
4245

4346
- name: Send Telegram notification
44-
run: node scripts/telegram-notify.js
47+
run: pnpm dlx node-fetch@3.3.1 node scripts/telegram-notify.js

0 commit comments

Comments
 (0)