Insights & NPM Stats #2120
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: 'Insights & NPM Stats' | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0/6 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Build | |
run: | | |
yarn | |
yarn insights | |
yarn npm-stats | |
env: | |
MONGODB_URI: ${{ secrets.MONGODB_URI }} | |
NODE_OPTIONS: '--max_old_space_size=8192' | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} | |
LAST_FM_API_KEY: ${{ secrets.LAST_FM_API_KEY }} |