Skip to content

Commit

Permalink
fix: only prompt version when run release, and submit comment to clos…
Browse files Browse the repository at this point in the history
…ed issues, fix prerelease version number breaks auto update (#92)

* chore: only prompt version when run release

* chore: submit comment in issue when new version release
closes: #91

* fix: set default prerelease id to beta to resolve auto update wrong
  • Loading branch information
northword authored Dec 26, 2023
1 parent fc8a4ac commit 7f6b7c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"stop": "node scripts/stop.mjs",
"lint": "prettier --write . && eslint . --ext .ts --fix",
"test": "echo \"Error: no test specified\" && exit 1",
"release": "release-it",
"release": "release-it --only-version --preReleaseId=beta",
"update-deps": "npm update --save"
},
"repository": {
Expand Down Expand Up @@ -124,7 +124,12 @@
"release": false,
"assets": [
"build/*.xpi"
]
],
"comments": {
"submit": true,
"issue": ":rocket: _This issue has been resolved in v${version}. See [${releaseName}](${releaseUrl}) for release notes._",
"pr": ":rocket: _This pull request is included in v${version}. See [${releaseName}](${releaseUrl}) for release notes._"
}
},
"hooks": {
"before:init": "npm run lint",
Expand Down

0 comments on commit 7f6b7c5

Please sign in to comment.