greenlock.js/publish.sh

17 wiersze
318 B
Bash
Czysty Zwykły widok Historia

#!/bin/bash
set -e
set -u
git fetch --all
2019-11-01 20:06:24 +00:00
git checkout origin 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