Created
February 19, 2023 15:18
-
-
Save Pradumnasaraf/356565e432a1ae3a9637a467933802f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format | |
on: [push] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
name: Format Files | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: npm ci | |
- name: Prettier | |
run: npx prettier --write '**/*.js' '*.{js,md}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} | |
with: | |
commit_message: "style: format files" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment