Skip to content

Commit 3541ce8

Browse files
committed
yarnからnpmに変更
1 parent 9df9d93 commit 3541ce8

File tree

7 files changed

+2887
-2729
lines changed

7 files changed

+2887
-2729
lines changed

.github/workflows/ci.yml

+16-15
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,32 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Check out code
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 2
1515
- name: Setup Node.js environment
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
19-
- run: corepack enable yarn
20-
- id: yarn
21-
run: echo "cache-dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
22-
- uses: actions/cache@v3
23-
name: Setup pnpm cache
18+
node-version: 20
19+
- name: Get npm cache directory
20+
id: npm-cache-dir
21+
shell: bash
22+
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
23+
- uses: actions/cache@v4
24+
name: Setup npm cache
2425
with:
25-
path: ${{ steps.yarn.outputs.cache-dir }}
26-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
26+
path: ${{ steps.npm-cache-dir.outputs.dir }}
27+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
2728
restore-keys: |
28-
${{ runner.os }}-yarn-
29+
${{ runner.os }}-npm-
2930
- name: Install dependencies
30-
run: yarn
31+
run: npm install
3132
- name: Install Playwright Browsers
32-
run: yarn playwright install --with-deps chromium
33+
run: npx playwright install --with-deps chromium
3334
- name: Run Unit tests
34-
run: yarn vitest
35+
run: npx vitest
3536
- name: Run Playwright tests
36-
run: yarn playwright test
37+
run: npx playwright test
3738
- uses: actions/upload-artifact@v3
3839
if: always()
3940
with:

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,6 @@ dist
122122
# Stores VSCode versions used for testing VSCode extensions
123123
.vscode-test
124124

125-
# yarn v2
126-
.yarn/
127-
.pnp.*
128-
129125
# playwright
130126
/test-results/
131127
/playwright-report/

.vscode/extensions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["ZixuanChen.vitest-explorer", "ms-playwright.playwright"]
2+
"recommendations": ["vitest.explorer", "ms-playwright.playwright"]
33
}

.yarnrc.yml

-1
This file was deleted.

0 commit comments

Comments
 (0)