Skip to content

Commit cb53976

Browse files
committed
update build script
1 parent 4ace4cd commit cb53976

File tree

8 files changed

+23
-7286
lines changed

8 files changed

+23
-7286
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [10.x, 12.x, 14.x]
12+
node-version: [12.x, 14.x, 15.x]
1313

1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Use Node.js ${{ matrix.node-version }}
1717
uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
- name: npm install, build, and test
20+
- name: yarn install, build, and test
2121
run: |
22-
npm ci
23-
npm run build --if-present
24-
npm test
25-
npm pack
22+
yarn install
23+
yarn build
24+
yarn test
25+
yarn pack
2626
env:
2727
CI: true
2828
- name: Archive production artifacts

.github/workflows/npm_publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- uses: actions/setup-node@v1
1616
with:
1717
node-version: 12
18-
- run: npm ci
19-
- run: npm test
18+
- run: yarn install
19+
- run: yarn test
2020

2121
publish-npm:
2222
needs: build
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
node-version: 14
2929
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
31-
- run: npm publish
30+
- run: yarn install
31+
- run: yarn publish
3232
env:
3333
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules/
2+
*.log
23

34
# output folder
45
/lib/

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Express middleware for mocking restful APIs
77
```
88
npm install --save-dev express-mock-api-middleware
99
```
10+
or
11+
```
12+
yarn add --dev express-mock-api-middleware
13+
```
1014

1115
# Usage
1216

0 commit comments

Comments
 (0)