%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/2/cwd/usr/local/lib/node_modules/tsc/
Upload File :
Create Path :
Current File : //proc/2/cwd/usr/local/lib/node_modules/tsc/release.sh

#!/bin/sh

# Get the git commit hash
typeScriptDirectory='./TypeScript'
cd $typeScriptDirectory
commitHash=`git rev-parse HEAD`
cd ..

commitName="1.$(date +%Y%m%d).0+$commitHash"

# Update package.json
< package.json > package.json.new sed -E "s/(\s+\"version\": \")[^\"]+(\",)/\1$commitName\2/"
mv package.json.new package.json
git add -A

# Commit,tag,push,publish
git commit -m $commitName
git tag $commitName
git push
git push --tags
npm publish

Zerion Mini Shell 1.0