2019-11-01 20:04:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
|
|
|
|
git fetch --all
|
2019-11-01 20:07:49 +00:00
|
|
|
git checkout master
|
|
|
|
git pull origin master
|
2019-11-01 20:04:03 +00:00
|
|
|
|
|
|
|
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
|