File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v1
11
+ - uses : actions/setup-node@v1
12
+ with :
13
+ node-version : 12
14
+ - name : npm install, build, and test
15
+ run : |
16
+ npm install
17
+ npm run prepare --if-present
18
+ npm test
19
+ env :
20
+ CI : true
Original file line number Diff line number Diff line change 8
8
"build" : " microbundle --target node --format cjs --no-compress src/*.js" ,
9
9
"prepublishOnly" : " npm run build" ,
10
10
"dev" : " karmatic watch --no-headless" ,
11
- "test" : " npm run build && karmatic" ,
11
+ "test" : " npm run build && karmatic && NODE_ENV=production karmatic -p " ,
12
12
"release" : " npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
13
13
},
14
14
"eslintConfig" : {
45
45
"peerDependencies" : {
46
46
"webpack" : " *"
47
47
}
48
- }
48
+ }
Original file line number Diff line number Diff line change
1
+ module . exports = function ( ) {
2
+ return {
3
+ mode : process . env . NODE_ENV || 'development'
4
+ } ;
5
+ }
You can’t perform that action at this time.
0 commit comments