Permalink
Browse files

removed version from gedcom lib so npm version matches. rolled back v…

…ersion and fixed script to use npm
  • Loading branch information...
dcapwell
dcapwell committed Jan 27, 2013
1 parent cf3e3b4 commit 8cbaf0643b52635d79d84b7a187dfe58ac771050
Showing with 6 additions and 7 deletions.
  1. +1 −3 lib/gedcom.js
  2. +1 −1 package.json
  3. +4 −3 release.sh
View
@@ -1,8 +1,7 @@
(function () {
"use strict";
- var VERSION = '0.0.1',
- Lazy = require('lazy'),
+ var Lazy = require('lazy'),
fs = require('fs'),
Gedcom = {
parse: function (file, cb) {
@@ -99,5 +98,4 @@
/* Exports
/*************************************/
module.exports = Gedcom;
- module.exports.VERSION = VERSION;
})();
View
@@ -1,7 +1,7 @@
{
"name": "gedcom",
"description": "Gedcom parser",
- "version": "0.0.2",
+ "version": "0.0.1",
"main": "lib/gedcom.js",
"dependencies": {
"lazy": "1.0.8"
View
@@ -4,7 +4,7 @@ FILE=RELEASE_NOTES
TMP_FILE=${FILE}.tmp
NAME=$(cat package.json | grep name | sed -e "s/.*name.*\"\(.*\)\",/\1/")
VERSION=$(cat package.json | grep version | sed -e "s/.*version.*\"\(.*\)\",/\1/")
-TAG=$NAME-$VERSION
+TAG=v$VERSION
echo "$TAG" > ${TMP_FILE}
git describe --abbrev=0 2> /dev/null 1> /dev/null \
@@ -19,5 +19,6 @@ fi
mv ${TMP_FILE} $FILE
-#git commit -a -m "[release-script] Updated release notes for version ${VERSION}"
-#git tag -a $TAG -m "[auto-release] version $VERSION"
+git add $FILE
+git commit -a -m "[release-script] Updated release notes for version ${VERSION}"
+npm version patch -m "[auto-release] version %s"

0 comments on commit 8cbaf06

Please sign in to comment.