-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workflow): update linting gh action
- Loading branch information
Showing
1 changed file
with
18 additions
and
11 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Linting | ||
name: Lint | ||
|
||
# This action works with pull requests and pushes | ||
on: | ||
pull_request: | ||
push: | ||
|
@@ -12,14 +11,22 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests | ||
ref: ${{ github.head_ref }} | ||
|
||
# uses https://github.com/marketplace/actions/prettier-action | ||
uses: actions/checkout@v3 | ||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
uses: creyD/[email protected] | ||
with: | ||
prettier_options: -c . | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
commit_message: 'style(prettier): fix linting' | ||
prettier_options: --config ./.prettierrc.json --write **/*.{js,md,ts,tsx,json,yml,scss,css,html} | ||
node-version: '18.x' | ||
cache: 'yarn' | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Run ESLint | ||
run: yarn lint |
282f24d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
promptfolio – ./
promptfolio-git-main-darkguy10.vercel.app
promptfolio-darkguy10.vercel.app