Node.js CI #510
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
# | |
name: Node.js CI | |
# name: Do things at 10:00 and 22:00 every day UTC | |
#on: push | |
on: | |
schedule: | |
- cron: "00 22 * * *" | |
env: | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
env: | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
- run: npm install | |
- run: npm run update-readme | |
- run: | | |
git config user.name nach131 | |
git config user.email nacho.mota@gmail.com | |
git add . | |
git commit -m "generated" | |
git push |