NPM Downloads to Bark #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NPM Downloads to Bark | |
on: | |
schedule: | |
- cron: '30 1 * * *' | |
workflow_dispatch: | |
jobs: | |
send-downloads: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
- name: Install dependencies | |
run: pnpm add axios ts-node typescript@5.5.4 -w | |
- name: Run TypeScript script | |
env: | |
BARK_KEY: ${{ secrets.BARK_KEY }} | |
run: pnpm ts-node script/npm_downloads.ts |