Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
chore(version): 3.5.1-beta05
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Oct 23, 2020
1 parent 8b354cd commit 5580cba
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "Standard Notes",
"description": "A simple and private place for your notes, thoughts, and life's work.",
"author": "Standard Notes <[email protected]>",
"version": "3.5.1-beta04",
"version": "3.5.1-beta05",
"main": "./dist/index.js",
"dependencies": {
"keytar": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "standard-notes",
"main": "./app/dist/index.js",
"version": "3.5.1-beta04",
"version": "3.5.1-beta05",
"repository": {
"type": "git",
"url": "git://github.com/standardnotes/desktop"
Expand Down Expand Up @@ -129,7 +129,8 @@
"release:draft": "node scripts/create-draft-release.mjs",
"setup": "npm install && npm --prefix ./app install ./app && git submodule update --init && npm --prefix ./web install",
"start": "electron . --enable-logging --icon _icon/icon.png",
"test": "rimraf test/data/tmp && ava"
"test": "rimraf test/data/tmp && ava",
"change-version": "node scripts/change-version.mjs"
},
"husky": {
"hooks": {
Expand Down
22 changes: 22 additions & 0 deletions scripts/change-version.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { execSync } from 'child_process';

(async () => {
const version = process.argv[2];
if (!version) {
console.error('Must specify a version number.');
process.exitCode = 1;
return;
}
execSync(`npm version --no-git-tag-version ${version}`);
process.chdir('app');
execSync(`npm version --no-git-tag-version ${version}`);
process.chdir('..');
execSync(
'git add ' +
'package.json ' +
'package-lock.json ' +
'app/package.json ' +
'app/package-lock.json'
);
execSync(`git commit -m "chore(version): ${version}"`);
})();

0 comments on commit 5580cba

Please sign in to comment.