From b3171b70823be7c0b046cac1946253ad18603429 Mon Sep 17 00:00:00 2001 From: swfz Date: Mon, 25 Sep 2023 04:22:57 +0900 Subject: [PATCH 1/3] feat: add scripts --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 2fd981b9..6008a800 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "next build", "start": "next start", "lint": "next lint", + "lint:format": "prettier --check --ignore-path .gitignore './**/*.{js,ts,tsx,json,css}'", "format": "prettier --write --ignore-path .gitignore './**/*.{js,ts,tsx,json,css}'", "storybook": "start-storybook -p 6006", "build-storybook": "build-storybook", From 8ac184972a4cd5666fda4ecc648296eec29df237 Mon Sep 17 00:00:00 2001 From: swfz Date: Mon, 25 Sep 2023 04:24:50 +0900 Subject: [PATCH 2/3] add prettier check --- .github/workflows/lint.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cdacf4f1..f7d03fad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,19 +8,33 @@ jobs: runs-on: ubuntu-latest name: run eslint steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + - uses: actions/checkout@4.1.0 - uses: actions/setup-node@v3.8.1 with: node-version-file: .node-version cache: yarn - - name: lint check + - name: eslint check run: | yarn yarn lint + prettier: + runs-on: ubuntu-latest + name: run prettier check + steps: + - uses: actions/checkout@4.1.0 + - uses: actions/setup-node@v3.8.1 + with: + node-version-file: .node-version + cache: yarn + - name: prettier check + run: | + yarn + yarn lint:format + slack-notify: if: always() - needs: [eslint] + needs: [eslint, prettier] name: post slack runs-on: ubuntu-latest steps: From f858e3e2a726b1a740f9e194e7420809fbaf3631 Mon Sep 17 00:00:00 2001 From: swfz Date: Mon, 25 Sep 2023 04:27:24 +0900 Subject: [PATCH 3/3] fix: version --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f7d03fad..e77e9252 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest name: run eslint steps: - - uses: actions/checkout@4.1.0 + - uses: actions/checkout@v4.1.0 - uses: actions/setup-node@v3.8.1 with: node-version-file: .node-version @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest name: run prettier check steps: - - uses: actions/checkout@4.1.0 + - uses: actions/checkout@v4.1.0 - uses: actions/setup-node@v3.8.1 with: node-version-file: .node-version