Create style.yml
This commit is contained in:
parent
9445a624ad
commit
5a34452f79
1 changed files with 23 additions and 0 deletions
23
.github/workflows/style.yml
vendored
Normal file
23
.github/workflows/style.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: npm run format
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
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
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '20.x'
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run format
|
Loading…
Reference in a new issue