Update devDependencies #315
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | |
name: Prettier | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Format | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- run: rm -f package.json | |
- run: rm -f package-lock.json | |
- run: npm init -y | |
- run: npm i -D @yandeu/prettier-config | |
- run: npm i -D prettier | |
- run: node node_modules/.bin/prettier --check src |