fix(ci-pipeline): update commands to use pnpm exec

This commit is contained in:
Shintaro Jokagi 2025-06-03 11:04:04 +12:00
parent 2dc109ccc5
commit 4b9d6ba81b
No known key found for this signature in database
GPG key ID: 0DDF8FA44C9A0DA8

View file

@ -52,7 +52,7 @@ jobs:
node_modules node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Run Eslint check - name: Run Eslint check
run: turbo run lint run: pnpm exec turbo run lint
prettier: prettier:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -73,7 +73,7 @@ jobs:
node_modules node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Run Prettier check - name: Run Prettier check
run: turbo run format run: pnpm exec turbo run format
cspell: cspell:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -94,7 +94,7 @@ jobs:
node_modules node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Run cspell check - name: Run cspell check
run: turbo run spell run: pnpm exec turbo run spell
vitest: vitest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -115,7 +115,7 @@ jobs:
node_modules node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Run Vitest tests - name: Run Vitest tests
run: turbo vitest run run: pnpm exec turbo vitest run
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -136,7 +136,7 @@ jobs:
node_modules node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Build project - name: Build project
run: turbo run build run: pnpm exec turbo run build
- name: Upload build output - name: Upload build output
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -164,8 +164,6 @@ jobs:
.turbo .turbo
node_modules node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers - name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps run: pnpm exec playwright install --with-deps
- name: Download build output - name: Download build output
@ -174,4 +172,4 @@ jobs:
name: build name: build
path: dist path: dist
- name: Run Playwright tests - name: Run Playwright tests
run: turbo run test:playwright run: pnpm exec turbo run test:playwright