Remove linter from GitHub Action. #16
Workflow file for this run
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
name: Format JavaScript and Vue SFC code | |
on: | |
push: | |
paths: | |
- '**.js' | |
- '**.vue' | |
- 'package.json' | |
- 'package-lock.json' | |
- '.prettierrc.js' | |
- '.prettierrc.json' | |
jobs: | |
js-code-formatting: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install npm dependencies | |
run: npm install | |
- name: Run format script | |
run: npm run format | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Apply code formatting for js and vue files |