Skip to content

Report npm download stats #78

Report npm download stats

Report npm download stats #78

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@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.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