greenlock.js/publish.sh

17 lines
311 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -u
git fetch --all
git checkout master
git pull
git checkout npm
git checkout master -- package.json
git checkout master -- README.md
sed -i '' -e 's|"name": ".root.greenlock"|"name": "greenlock"|' package.json
npm install --save @root/greenlock@latest
npm publish ./
git reset --hard