Skip to content

Commit

Permalink
Update version script (#624)
Browse files Browse the repository at this point in the history
* Update version script

* Updating package version

* Update version

* Updating package version

* Update version

* Updating package version

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jwong-pdftron and github-actions[bot] authored Nov 24, 2022
1 parent 091e2cf commit 95ae10e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-pdftron",
"title": "React Native Pdftron",
"version": "3.0.3-0",
"version": "3.0.3-1",
"description": "React Native Pdftron",
"main": "./lib/index.js",
"typings": "index.ts",
Expand Down
6 changes: 3 additions & 3 deletions scripts/update_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jsonReader('./package.json', (err, data) => {
if(err){
console.log(err);
} else {
let version = data.version.split('.');
version[3] =(parseInt(version[3])+1);
data.version = version.join('.');
let version = data.version.split('-');
version[1] =(parseInt(version[1])+1);
data.version = version.join('-');
fs.writeFile('./package.json', JSON.stringify(data, null, 2), err => {
if(err) {
console.log(err);
Expand Down

0 comments on commit 95ae10e

Please sign in to comment.