2020-04-02 14:31:07 +08:00
|
|
|
name: auto build data
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- data/**
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
|
|
steps:
|
2020-04-20 10:26:35 +01:00
|
|
|
- uses: actions/checkout@v2.1.0
|
2020-04-20 10:26:28 +01:00
|
|
|
- uses: actions/setup-node@v1.4.1
|
2020-04-02 14:31:07 +08:00
|
|
|
with:
|
|
|
|
node-version: 13
|
|
|
|
- name: build
|
|
|
|
# env:
|
|
|
|
run: |
|
|
|
|
npm --version
|
|
|
|
node --version
|
|
|
|
npm ci
|
|
|
|
npm run lint
|
|
|
|
npm run build
|
|
|
|
- name: Push changes
|
|
|
|
if: success()
|
2020-04-20 10:26:20 +01:00
|
|
|
uses: ad-m/github-push-action@v0.5.0
|
2020-04-02 14:31:07 +08:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|