ci.yml 853 B

1234567891011121314151617181920212223242526272829303132
  1. name: CI
  2. on: [push]
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout repo
  8. uses: actions/checkout@v2
  9. - name: Set up Node.Js
  10. uses: actions/setup-node@v1
  11. with:
  12. node-version: 12
  13. - name: Install deps
  14. run: |
  15. npm ci
  16. npm install -g eslint
  17. - name: Lint
  18. run: npm run lint
  19. - name: Cleanup
  20. run: npm ci --only=production
  21. - name: Generate manifest
  22. run: npm run manifest
  23. - name: Commit changes
  24. run: |
  25. [[ `git status --porcelain` ]] || exit
  26. git config --global core.autocrlf false
  27. git config --global user.name 'SaltyMonkey'
  28. git config --global user.email 'SaltyMonkey@users.noreply.github.com'
  29. git commit -am "[CI] Automatic commit and lint"
  30. git push