ci.yml 733 B

12345678910111213141516171819202122232425262728
  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: Lint source code
  14. run: |
  15. npm ci
  16. npm run lint
  17. npm ci --only=production
  18. - name: Generate manifest
  19. run: npm run manifest
  20. - name: Commit changes
  21. run: |
  22. git config --global core.autocrlf false
  23. git config --global user.name 'SaltyMonkey'
  24. git config --global user.email 'SaltyMonkey@users.noreply.github.com'
  25. git commit -am "[CI] Automatic commit and lint"
  26. git push