Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Update 1.0.0-alpha.0 from 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaindethier committed Feb 19, 2016
1 parent 1cdaf07 commit 6042c99
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "react-custom-props",
"version": "0.4.0",
"version": "0.3.0",
"description": "Custom configurable props for React or HTML elements",
"main": "react-custom-props.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"coverage": "NODE_ENV=test istanbul cover _mocha -- -R spec --compilers js:babel-core/register",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"clean": "rimraf dist/* lib/*",
"prebuild": "npm run test-src && npm run clean",
"prebuild": "npm run clean && npm run test-src",
"build": "npm run build-lib && npm run build-dist",
"build-lib": "NODE_ENV=production babel ./src -d lib",
"build-dist": "NODE_ENV=production webpack && NODE_ENV=production MINIFY=true webpack",
Expand Down
24 changes: 15 additions & 9 deletions scripts/release.sh
Expand Up @@ -11,20 +11,26 @@ npm run build

## get the current version from package
current_version=$(node -p "require('./package').version")
## read the version to update
printf "Update type (current version is $current_version)? "

## read the version update type
echo "Current version is '$current_version'"
echo "Update type: <version> | (pre)major | (pre)minor | (pre)patch | prerelease | from-git"
printf "Which update type is ? "
read update_type

## commit unstaged changes
## add and commit unstaged changes
git add --all
git commit --allow-empty -am "Update $update_type from $current_version"
## update package version
version=$(npm version $update_type)

## push to origin
#git tag $version
git push origin master
git push origin $version
## update package version (disable git-tag-version, will be done after)
version=$(npm --no-git-tag-version version $update_type)
echo "New version is '$version'"

## create tag version
git tag -a "$version" -m "version $version"

## push to origin with tag
git push --follow-tag origin master

## publish to npm
npm publish

0 comments on commit 6042c99

Please sign in to comment.