Skip to content

Dev

Dev #3

Workflow file for this run

name: Format
on:
pull_request:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
# github token is required to push changes back to the repository
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
# latest node version
node-version: '16'
- run: npm ci
- run: npm run format
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: format code"
branch: ${{ github.head_ref }}