If you are a GitHub driven organization and publish your packages on NPM, this might work for you.
- Node 10
Setup config.js:
module.exports = {
"ORGANIZATION": "org name",
"GITHUB_TOKEN": "github token that can has push access to your repositories",
"NPM_MAPPING": {
// repo: npmhandle
}
}
Running a cronjob daily that does:
#!/bin/bash
cd /home/me/oss-org-stats
nvm use
npm run import-data
npm run deploy
This will download github and NPM data and deploy this package to github pages.
Or run this as a Dockerized task form your own repository fork:
$ docker build -t oss-org-stats .
$ docker run \
-e REPO_HTTPS_ADDRESS=https://12345-github-token@github.com/organization/oss-org-stats.git \
-e PUBLISHER_EMAIL= chadima.jiri@gmail.com \
-e PUBLISHER_USERNAME= jirkachadima \
oss-org-stats