This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
Fix: Add AndresPradGo (#1967) #2481
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
# @see https://github.com/EddieJaoudeCommunity/awesome-github-profiles/issues/173 | |
name: Prettier | |
# @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags | |
# "Push" is every commit to any branch, whilst "pull_request" includes update commits to PRs. | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
prettier: | |
name: Prettier Linting | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Load Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- name: Prettier | |
run: npm run format | |
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" |