Feature/meditor 896 show collaborators for given document #65
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 Code | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
format-code: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
max-parallel: 1 | |
matrix: | |
directory: ["packages/app", "packages/docs", "packages/proxy"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: "npm" | |
cache-dependency-path: ${{ matrix.directory }}/package-lock.json | |
- name: Install package dependencies | |
working-directory: ${{ matrix.directory }} | |
run: npm install | |
- name: Run format command | |
working-directory: ${{ matrix.directory }} | |
run: npm run format | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "ci: auto-format" |