Skip to content

Commit

Permalink
build(semantic-release): publish package tarball as github release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers committed Aug 31, 2020
1 parent f2cc184 commit 0be0b5d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
{ "type": "refactor", "release": "patch" }
]
}],

["@semantic-release/release-notes-generator", {
"preset": "conventionalcommits",
"presetConfig": {
Expand All @@ -30,7 +31,13 @@
]
}
}],
"@semantic-release/github",
"@semantic-release/npm"

["@semantic-release/npm", {
"tarballDir": "package"
}],

["@semantic-release/github", {
"assets": "package/*.tgz"
}]
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "node dist/index.js",
"lint": "eslint .",
"dev": "nodemon --exec babel-node src",
"prepack": "npm run build"
"prepare": "npm run build"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -59,4 +59,4 @@
"engines": {
"node": ">=14.4.0"
}
}
}

0 comments on commit 0be0b5d

Please sign in to comment.