Skip to content

Commit 53bf0ed

Browse files
committed
fix: Use yarn command instead of npm
1 parent 78806a5 commit 53bf0ed

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- 'src/**'
77
- 'dist/**'
88
- tsconfig.json
9-
- package*
9+
- package.json
10+
- yarn.lock
1011

1112
env:
1213
IMAGE_NAME: alpine:3.10.1
@@ -19,13 +20,10 @@ jobs:
1920
- uses: actions/checkout@v1
2021

2122
- name: Install dependencies
22-
run: npm install
23-
24-
# - name: Test
25-
# run: npm run test
23+
run: yarn install
2624

2725
- name: Build
28-
run: npm run build
26+
run: yarn run build
2927

3028
- name: Pull docker image
3129
run: docker pull alpine:3.10.3
@@ -53,13 +51,10 @@ jobs:
5351
- uses: actions/checkout@v1
5452

5553
- name: Install dependencies
56-
run: npm install
57-
58-
# - name: Test
59-
# run: npm run test
54+
run: yarn install
6055

6156
- name: Build
62-
run: npm run build
57+
run: yarn run build
6358

6459
- name: Pull docker image
6560
run: docker pull alpine:3.10.3
@@ -86,13 +81,10 @@ jobs:
8681
- uses: actions/checkout@v1
8782

8883
- name: Install dependencies
89-
run: npm install
90-
91-
# - name: Test
92-
# run: npm run test
84+
run: yarn install
9385

9486
- name: Build
95-
run: npm run build
87+
run: yarn run build
9688

9789
- name: Pull docker image
9890
run: docker pull alpine:3.10.3

.github/workflows/unittest.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- 'src/**'
77
- 'dist/**'
88
- tsconfig.json
9-
- package*
9+
- package.json
10+
- yarn.lock
1011

1112
jobs:
1213
jest:
@@ -20,7 +21,7 @@ jobs:
2021
node-version: '12.x'
2122

2223
- name: Install dependencies
23-
run: npm install
24+
run: yarn install
2425

2526
- name: Jest
26-
run: npm run test
27+
run: yarn run test

0 commit comments

Comments
 (0)