eexiv/.github/workflows/style.yml

28 lines
590 B
YAML
Raw Normal View History

2024-02-14 16:41:04 -08:00
name: npm run format
on: [pull_request, workflow_dispatch]
2024-02-14 16:41:04 -08:00
jobs:
2024-02-14 16:41:59 -08:00
style:
2024-02-14 16:41:04 -08:00
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
2024-02-14 16:49:59 -08:00
contents: write
2024-02-14 16:41:04 -08:00
steps:
- uses: actions/checkout@v4
2024-02-14 16:45:38 -08:00
2024-02-14 16:41:04 -08:00
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm install
- run: npm run format
2024-02-14 16:45:38 -08:00
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: format"