Skip to content

Commit

Permalink
fix: release: npm publish hooks not executed
Browse files Browse the repository at this point in the history
  • Loading branch information
EqualMa committed Apr 11, 2020
1 parent 159a8cf commit f4f3cac
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
"build": "yarn run clean && yarn run build:lib && yarn run build:types",
"build:lib": "rollup -c",
"build:types": "tsc -p tsconfig.dts.json --outDir dist --declaration --emitDeclarationOnly",
"prepublishOnly": "node scripts/prepublish.js",
"postpublish": "node scripts/postpublish.js",
"clean": "rimraf dist"
},
"devDependencies": {
Expand All @@ -42,6 +40,7 @@
"@babel/register": "^7.8.6",
"@rollup/plugin-typescript": "^4.0.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^25.1.3",
"@typescript-eslint/eslint-plugin": "^2.19.2",
Expand Down
7 changes: 7 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ module.exports = {
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/npm", { pkgRoot: "dist" }],
[
"@semantic-release/exec",
{
prepareCmd: "node scripts/prepublish.js",
publishCmd: "node scripts/postpublish.js",
},
],
"@semantic-release/git",
"@semantic-release/github",
],
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,18 @@
resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0"
integrity sha512-9Tj/qn+y2j+sjCI3Jd+qseGtHjOAeg7dU2/lVcqIQ9TV3QDaDXDYXcoOHU+7o2Hwh8L8ymL4gfuO7KxDs3q2zg==

"@semantic-release/exec@^5.0.0":
version "5.0.0"
resolved "https://registry.yarnpkg.com/@semantic-release/exec/-/exec-5.0.0.tgz#69c253107a755dabf7c262d417269d099f714356"
integrity sha512-t7LWXIvDJQbuGCy2WmMG51WyaGSLTvZBv9INvcI4S0kn+QjnnVVUMhcioIqhb0r3yqqarMzHVcABFug0q0OXjw==
dependencies:
"@semantic-release/error" "^2.1.0"
aggregate-error "^3.0.0"
debug "^4.0.0"
execa "^4.0.0"
lodash "^4.17.4"
parse-json "^5.0.0"

"@semantic-release/git@^9.0.0":
version "9.0.0"
resolved "https://registry.yarnpkg.com/@semantic-release/git/-/git-9.0.0.tgz#304c4883c87d095b1faaae93300f1f1e0466e9a5"
Expand Down

0 comments on commit f4f3cac

Please sign in to comment.