Skip to content

Commit

Permalink
chore(workflow): update linting gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGuy10 committed Dec 4, 2023
1 parent a351935 commit 282f24d
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/lint.yml
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:
Expand All @@ -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

1 comment on commit 282f24d

@vercel
Copy link

@vercel vercel bot commented on 282f24d Dec 4, 2023

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

Please sign in to comment.