Skip to content

Commit

Permalink
Merge pull request #8 from gen-tech/automated-tag
Browse files Browse the repository at this point in the history
tag update script
  • Loading branch information
alisahinozcelik authored May 11, 2018
2 parents 7277532 + c9187bb commit 9cc6fa9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ deploy:
email: [email protected]
api_key:
secure: hfZHWsQhCgFtgoyE2y4wzJIznu5Kd4pgNWCxCpWQFsjWGufOOu5ggVYEY0+vDCiIye9LFdavozkweeL4Grcg9hVDR7m9dYZ636Uh7DQ2gGTCqsfQkFuDW71vBs8bc8gf7jfD45MrQOAhEnmlfJEwZkIOOo7kosAw4RsXUlgKNVWdM+gK2ylMvpd/FK/PDFI7HQOCf2NaxuT1rirWg+lVU/GrJoUKSEp9cWML7D1yA7B+D5ciF93BEBVtILPWewZWSt73lu2BF1RCeGK1Rg+oOtAbQz9jRroEUKvK9hA6HubX8wxsEMl40LLT1PZlLKSqFPLnuATQ6rkWExt8Uzw82rGpJ7ubn1Qx6vQaF7UuVERnaMxBDYMXdqfJ2vmWZKF0MbOcB0h9LgzjycSC+r8ySCV+VStDBZ2+8esU06CcwVjWM4XvY+CT56iudIiNkntHdhgtMxnLLodz2XwyE95V46GET1zQU2JtD+hIeEQNCZRfMupDYsS51ue8F+zf8SoCsjA8aiuNpPALBNvPzVibY5yJ0pmHcumTnZye4OVzDblLzWgOwnnscg/Z2O9bw/moesZ/vUwZ1NcHrgOsuNtq4IXGiGsj0GL4jd4qeKuSZQh/PXXBFNTuGQfM24GraiT7dtp3xvCI58oCVkeHCGhDujwfx+b1JvryvkIse81YElk=
before_deploy: node ./scripts/tag-update $TRAVIS_TAG
on:
tags: true
repo: gen-tech/js-utils
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "@gen-tech/js-utils",
"version": "0.9.1",
"version": "0.0.0",
"description": "Javascript utility functions for web development",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"homepage": "https://gen-tech.github.io/js-utils",
"keywords": [
"object",
"deep clone",
"array",
"compact",
"promise",
Expand Down Expand Up @@ -41,7 +43,8 @@
"nyc": "^11.7.1",
"ts-node": "^6.0.3",
"typedoc": "^0.11.1",
"typescript": "^2.8.3"
"typescript": "^2.8.3",
"update-json": "^1.0.0"
},
"dependencies": {
"tslib": "^1.9.0"
Expand All @@ -68,4 +71,4 @@
],
"all": true
}
}
}
11 changes: 11 additions & 0 deletions scripts/tag-update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const updateJson = require('update-json');

const [, , version] = process.argv;

updateJson("./package.json", {version}, error => {
if (error) {
throw error;
} else {
console.log("Package version updated to:", version);
}
});

0 comments on commit 9cc6fa9

Please sign in to comment.