12ca81cd68
Co-authored-by: GitButler <gitbutler@gitbutler.com> Co-authored-by: Team1280Programming <Team1280Programming@users.noreply.github.com>
27 lines
590 B
YAML
27 lines
590 B
YAML
name: npm run format
|
|
|
|
on: [pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
style:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
|
# added or changed files to the repository.
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20.x'
|
|
- run: npm install
|
|
- run: npm run format
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: "style: format"
|