greenlock.js-ARCHIVED/publish.sh

20 lines
443 B
Bash
Raw Normal View History

#!/bin/bash
set -e
set -u
git fetch --all
2019-11-01 20:07:49 +00:00
git checkout master
git pull origin master
git checkout npm
git checkout master -- package.json
git checkout master -- README.md
sed -i '' -e 's|"name": ".root.greenlock"|"name": "greenlock"|' package.json
2019-11-01 22:18:55 +00:00
sed -i '' -e 's|.root.greenlock|greenlock|' README.md
npm install --save @root/greenlock@latest
2019-11-01 20:24:16 +00:00
git add package* README.md || true
git commit -m "bump" || true
npm publish ./
git reset --hard