greenlock-express.js/publish.sh

19 lines
413 B
Bash
Raw Normal View History

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