paper.js/build/publish.sh

32 lines
737 B
Bash
Raw Normal View History

#!/bin/bash
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
# http://paperjs.org/
#
# Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
# http://lehni.org/ & http://jonathanpuckey.com/
#
# Distributed under the MIT license. See LICENSE file for details.
#
# All rights reserved.
2013-07-03 17:05:03 -04:00
./dist.sh
echo "Commiting Version"
2013-06-27 06:09:37 -04:00
# Add changed json configuration files
git add -u ../package.json
2013-06-27 06:09:37 -04:00
git add -u ../bower.json
# Add all changed files in dist
git add -u ../dist
# Extract the paper.js version from package.json:
VERSION=$(node -e "
process.stdout.write(require('../package.json').version)
")
# Commit
2013-06-27 03:35:54 -04:00
git commit -m "Bump version to v$VERSION"
# Tag
git tag "v$VERSION"
2013-06-27 03:35:54 -04:00
# Push
2013-07-03 17:02:37 -04:00
git push --tags
2013-06-27 03:35:54 -04:00
# Publish
npm publish ..