Skip to content

Commit

Permalink
chore: 👷 run compile after version change and before publishing to npm
Browse files Browse the repository at this point in the history
This ensures that correct version number is included in the release.
  • Loading branch information
thomasmassmann committed Nov 8, 2021
1 parent af70d64 commit 1caf477
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
"compile": "rm -rf dist && mkdir dist && node build.js",
"lint": "eslint --ext .js src test",
"precommit": "lint-staged",
"release": "yarn test && yarn compile && standard-version && git push --follow-tags && yarn publish",
"release": "yarn test && standard-version -a && git push --follow-tags && yarn publish",
"test": "jest"
},
"standard-version": {
"scripts": {
"postchangelog": "yarn compile"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
Expand Down

0 comments on commit 1caf477

Please sign in to comment.