Skip to content

Commit 64ab636

Browse files
committed
Avoid committing version updates
1 parent f695ad7 commit 64ab636

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
- if: matrix.os == 'macos'
5151
run: pip install setuptools
5252
- run: npm ci
53+
- run: npm version --no-git-tag-version "${{ github.ref_name }}"
5354
- run: npm run make
5455
- uses: softprops/action-gh-release@v2
5556
with:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "clipboard-sync",
33
"productName": "Clipboard Sync",
4-
"version": "0.14.0",
4+
"version": "0.0.0-development",
55
"description": "Sync your clipboard between computers using a shared folder",
66
"type": "module",
77
"main": "dist/main/index.js",

src/main/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,11 @@ async function isUpdateAvailable(): Promise<
729729
const newVersion = newVersionUrl.split("/").pop().replace(/^v/, "");
730730
const currentVersion = app.getVersion();
731731

732+
// Development version should not attempt to update
733+
if (currentVersion === "0.0.0-development") {
734+
return false;
735+
}
736+
732737
if (semverGreaterThan(newVersion, currentVersion)) {
733738
updateLabel = "Download update";
734739
setContextMenu();

0 commit comments

Comments
 (0)