From 3a53cbedcdc6dea0d3ce1ab4375ce34e52d7d820 Mon Sep 17 00:00:00 2001 From: claustra01 Date: Sun, 11 Aug 2024 00:15:43 +0900 Subject: [PATCH 1/3] hotfix: ci build --- .github/workflows/ci.yml | 16 +++++++++++----- .github/workflows/deploy.yml | 6 ++++-- .github/workflows/pull-request.yml | 13 ++++++++----- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ff9e4e..5bd573d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,18 +9,22 @@ jobs: steps: - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 - run: | npm install - npm run check:ci + npm check:ci spell: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 - run: | - npm install - npm run spell + pnpm install + pnpm spell build: needs: [check, spell] @@ -28,6 +32,8 @@ jobs: steps: - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 - run: | - npm install - npm run build + pnpm install + pnpm build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 72c9908..7055b3f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,9 +11,11 @@ jobs: steps: - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 - run: | - npm install - npm run build + pnpm install + pnpm build - uses: FirebaseExtended/action-hosting-deploy@v0 with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 06a4d74..61c2fa7 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -17,9 +17,11 @@ jobs: steps: - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 - run: | - npm install - npm run build + pnpm install + pnpm build - uses: FirebaseExtended/action-hosting-deploy@v0 with: @@ -101,9 +103,10 @@ jobs: uses: actions/checkout@v4 - name: Install and Build - run: | - npm install - npm run build + uses: pnpm/action-setup@v4 + - run: | + pnpm install + pnpm build - name: Upload artifact uses: actions/upload-pages-artifact@v3 From 13941606f7e19624e7a74cdf6dc480646ba0a67d Mon Sep 17 00:00:00 2001 From: claustra01 Date: Sun, 11 Aug 2024 00:17:09 +0900 Subject: [PATCH 2/3] add: ci pnpm version --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/deploy.yml | 2 ++ .github/workflows/pull-request.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bd573d..6de51cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + version: 9 - run: | npm install npm check:ci @@ -22,6 +24,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + version: 9 - run: | pnpm install pnpm spell @@ -34,6 +38,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + version: 9 - run: | pnpm install pnpm build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7055b3f..352bc13 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,6 +13,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + version: 9 - run: | pnpm install pnpm build diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 61c2fa7..9a56aca 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,6 +19,8 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 + with: + version: 9 - run: | pnpm install pnpm build @@ -104,6 +106,8 @@ jobs: - name: Install and Build uses: pnpm/action-setup@v4 + with: + version: 9 - run: | pnpm install pnpm build From d42bf68ccf13c753f4d85895b363b34a37be539d Mon Sep 17 00:00:00 2001 From: claustra01 Date: Sun, 11 Aug 2024 00:17:57 +0900 Subject: [PATCH 3/3] fix: use pnpm --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6de51cd..316a626 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,8 @@ jobs: with: version: 9 - run: | - npm install - npm check:ci + pnpm install + pnpm check:ci spell: runs-on: ubuntu-latest