File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 18
18
token : ${{ steps.get-token.outputs.token }}
19
19
release-type : node
20
20
package-name : ' @netlify/open-api'
21
+ - uses : actions/checkout@v2
22
+ if : ${{ steps.release.outputs.release_created }}
23
+ - uses : actions/setup-node@v2
24
+ with :
25
+ node-version : ' 14'
26
+ registry-url : ' https://registry.npmjs.org'
27
+ if : ${{ steps.release.outputs.release_created }}
28
+ - run : npm publish
29
+ if : ${{ steps.release.outputs.release_created }}
30
+ env :
31
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ jobs:
17
17
runs-on : ${{ matrix.os }}
18
18
steps :
19
19
- name : Install Node.js ${{ matrix.node }}
20
- uses : actions/setup-node@v1
20
+ uses : actions/setup-node@v2
21
21
with :
22
22
node-version : ${{ matrix.node_version }}
23
23
- name : Git checkout
24
- uses : actions/checkout@v1
24
+ uses : actions/checkout@v2
25
25
- name : Install dependencies
26
- run : npm install
26
+ run : npm ci
27
27
- name : Tests
28
28
run : npm test
29
29
test-go :
Original file line number Diff line number Diff line change @@ -40,10 +40,7 @@ You may first want to edit swagger.yml to add your field or endpoint definitions
40
40
41
41
## Making a new release
42
42
43
- 1 . Merge the release PR (auto generated via ` release-please ` ).
44
- 2 . Switch to the default branch git checkout master.
45
- 3 . Pull latest changes git pull.
46
- 4 . Run ` npm publish ` .
43
+ Merge the release PR (auto generated via ` release-please ` )
47
44
48
45
## License
49
46
Original file line number Diff line number Diff line change 49
49
"url" : " git+https://github.com/netlify/open-api.git"
50
50
},
51
51
"scripts" : {
52
+ "prepublishOnly" : " npm ci && npm test" ,
52
53
"prepare" : " run-s test" ,
53
54
"test" : " run-s lint build unit" ,
54
55
"start" : " run-s lint build" ,
You can’t perform that action at this time.
0 commit comments