Skip to content

Commit d60f10d

Browse files
committed
add release scripts
1 parent 736280f commit d60f10d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
"main": "dist/async-plugin.js",
66
"source": "async-plugin.js",
77
"scripts": {
8+
"prepare": "npm t",
89
"build": "microbundle",
910
"test:build": "ln -fs ../node_modules test && preact build --cwd test && bundlesize -f 'test/build/bundle.*.js' -s 4.5kB",
10-
"test": "eslint async-plugin.js && npm run -s build && npm run -s test:build"
11+
"test": "eslint async-plugin.js && npm run -s build && npm run -s test:build",
12+
"release": "npm run -s prepare && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
1113
},
1214
"eslintConfig": {
1315
"extends": "eslint-config-developit"

0 commit comments

Comments
 (0)