ci.yml 812 B

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