Skip to content

Merge pull request #33 from ma10/add-related-checks-20230721 #31

Merge pull request #33 from ma10/add-related-checks-20230721

Merge pull request #33 from ma10/add-related-checks-20230721 #31

Workflow file for this run

name: Format by Prettier
on:
push:
branches:
- master
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install NPM packages
run: npm ci
- name: Run Prettier
run: npm run format
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply Prettier Change