UNPKG

better-npm-init

Version:

A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]

50 lines (48 loc) 1.29 kB
name: Lint-Prettier-Prettier:verify-Tests-CypressTests-Build-Purgecss-Deploy on: pull_request: push: branches: - main jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - uses: actions/setup-node@v1 #this installs node and npm for us with: node-version: '14.x' - uses: actions/cache@v1 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - name: Install npm dependencies run: | npm install - name: Prettier run: | npm run prettier - name: Prettier Verify run: | npm run prettier:verify - name: Lint run: | npm run lint - name: Cypress Test run: | npm run e2e:ci - name: Test run: | npm run test - name: Build run: | npm run final-build - name: Deploy uses: JamesIves/github-pages-deploy-action@releases/v3 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages FOLDER: dist