%PDF- %PDF-
Direktori : /proc/2/root/usr/local/lib/node_modules/tsc/ |
Current File : //proc/2/root/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