File tree 3 files changed +44
-11
lines changed
3 files changed +44
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Node.js package
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ publish-npm :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v2
13
+ with :
14
+ node-version : 14
15
+ registry-url : https://registry.npmjs.org/
16
+
17
+ - name : Install dependencies
18
+ run : npm ci
19
+
20
+ - name : Lint
21
+ run : |
22
+ npm run lint
23
+ npm run type-check
24
+
25
+ - name : Build package
26
+ run : |
27
+ npm --no-git-tag-version version ${GITHUB_REF#refs/*/}
28
+ npm run build
29
+
30
+ - name : Publish build
31
+ run : npm publish
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change @@ -2,19 +2,19 @@ name: Tests
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : [master]
8
8
9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v2
14
- - uses : actions/setup-node@v2
15
- with :
16
- node-version : 14
17
- - run : npm ci
18
- - run : npm run lint
19
- - run : npm run test --if-present
20
-
13
+ - uses : actions/checkout@v2
14
+ - uses : actions/setup-node@v2
15
+ with :
16
+ node-version : 14
17
+ - run : npm ci
18
+ - run : npm run lint
19
+ - run : npm run type-check
20
+ - run : npm run test --if-present
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ yarn add middleware-axios
19
19
Wrap axios instance (interface will be saved):
20
20
21
21
``` js
22
- import { create } from ' middleware-axios' ;
22
+ import { create } from ' middleware-axios/dist ' ;
23
23
24
24
// create wrapped instance in the same way as normal axios instance
25
25
const api = create ({
You can’t perform that action at this time.
0 commit comments