File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,11 @@ jobs:
2727 - name : Install npm dependencies
2828 run : npm ci
2929
30- - name : Build
30+ - name : Build and Test
3131 run : npm run build
3232
33- - name : Test
34- run : npm test
35-
3633 - name : Publish to NPM
3734 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
38- run : npm publish
35+ run : npm run trypublish
3936 env :
4037 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 77 "type" : " module" ,
88 "scripts" : {
99 "clean" : " rimraf lib" ,
10- "test" : " nyc mocha --require @babel/register" ,
1110 "lint" : " eslint src/**" ,
12- "build" : " npm run clean && npm run lint && npm run test && babel ./src -d ./lib" ,
11+ "test" : " nyc mocha --require @babel/register" ,
12+ "compile" : " babel ./src -d ./lib" ,
13+ "verify" : " npm run lint && npm run test" ,
14+ "build" : " npm run clean && npm run lint && npm run compile && npm run test" ,
15+ "prepublishOnly" : " npm run build" ,
1316 "upgrade-interactive" : " npm-check --update" ,
14- "prepublish" : " npm run build" ,
1517 "trypublish" : " npm publish || true"
1618 },
1719 "repository" : {
You can’t perform that action at this time.
0 commit comments