Skip to content

Report npm download stats #116

Report npm download stats

Report npm download stats #116

name: Report npm download stats
on:
schedule:
- cron: "0 14 * * *" # every day at 2pm UTC
workflow_dispatch:
jobs:
report-stats:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .tool-versions
- name: Report download stats to Datadog
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
run: npx tsx .github/scripts/npm-download-stats.ts