Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from victoriacheng15/add-prettier-yml
Browse files Browse the repository at this point in the history
add prettier yml for workflow
  • Loading branch information
TimDaub committed May 16, 2022
2 parents b506360 + 5f431b0 commit c13b966
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflow/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: dry run prettier

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false

- name: Prettify code
uses: creyD/prettier_action@v4.2
with:
prettier_options: --check **/*.{js,mjs}
dry: True
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}

0 comments on commit c13b966

Please sign in to comment.