forked from creyD/prettier_action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3dc7ece
commit 9185cff
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,9 @@ | |
[](https://github.com/creyD/prettier_action/graphs/contributors) | ||
[](https://github.com/creyD/prettier_action/issues) | ||
|
||
A GitHub action for styling files with [prettier](https://prettier.io). | ||
A GitHub action for styling files with [prettier](https://prettier.io) using Yarn. | ||
|
||
This project is a fork off of [creyD/prettier_action](https://github.com/creyD/prettier_action) in order to use Yarn as the package manager during the plugin install rather than NPM. | ||
|
||
## Usage | ||
|
||
|
@@ -60,7 +62,7 @@ jobs: | |
ref: ${{ github.head_ref }} | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
uses: Andrews-McMeel-Universal/[email protected].1 | ||
with: | ||
# This part is also where you can pass other options, for example: | ||
prettier_options: --write **/*.{js,md} | ||
|
@@ -89,7 +91,7 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
uses: Andrews-McMeel-Universal/[email protected].1 | ||
with: | ||
# This part is also where you can pass other options, for example: | ||
prettier_options: --write **/*.{js,md} | ||
|
@@ -119,7 +121,7 @@ jobs: | |
persist-credentials: false | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
uses: Andrews-McMeel-Universal/[email protected].1 | ||
with: | ||
prettier_options: --write **/*.{js,md} | ||
only_changed: True | ||
|
@@ -150,7 +152,7 @@ jobs: | |
persist-credentials: false | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
uses: Andrews-McMeel-Universal/[email protected].1 | ||
with: | ||
dry: True | ||
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: AMU Prettier Action | ||
description: Automatically runs prettier on all your changes. | ||
name: Yarn Prettier Action | ||
description: Automatically runs prettier on all your changes. Uses Yarn as the package manager. | ||
|
||
author: Ella Bronson <[email protected]> | ||
|
||
|