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 ci npm install -g eslint - 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