mirror of https://github.com/vuejs/core.git
35 lines
692 B
YAML
35 lines
692 B
YAML
name: autofix.ci
|
|
|
|
on:
|
|
pull_request:
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
autofix:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
PUPPETEER_SKIP_DOWNLOAD: 'true'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4.1.0
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.node-version'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
cache: 'pnpm'
|
|
|
|
- run: pnpm install
|
|
|
|
- name: Run eslint
|
|
run: pnpm run lint --fix
|
|
|
|
- name: Run prettier
|
|
run: pnpm run format
|
|
|
|
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
|