Skip to content

Node.js CI

Node.js CI #1399

Workflow file for this run

# This workflow will do a clean install of node dependencies, 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
on:
schedule:
# * is a special character in YAML so you have to quote this string.
# /30 denotes that it will run once every 30 minutes
- cron: '15 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: git pull
- run: npm run start:english
- run: npm run start:chinese
- run: git add .
- run: |
set +e
git config --global user.email "[email protected]"
git config --global user.name "liuht"
git commit -m"articlelist update"
set -e
- run: git push