| 123456789101112131415161718192021222324252627282930 |
- name: CI
- on: [push]
- jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repo
- uses: actions/checkout@v2
- - name: Set up Node.Js
- uses: actions/setup-node@v1
- with:
- node-version: 12
- - name: Install deps
- run: npm install
- - name: Lint
- run: npm run lint
- - name: Cleanup
- run: npm ci --only=production
- - name: Generate manifest
- run: npm run manifest
- - name: Commit changes
- run: |
- [[ `git status --porcelain` ]] || exit
- git config --global core.autocrlf false
- git config --global user.name 'SaltyMonkey'
- git config --global user.email 'SaltyMonkey@users.noreply.github.com'
- git commit -am "[CI] Automatic commit and lint"
- git push
|