blob: d354b39ccd8152a4084d487a096f3dea9d27cb5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
defaultTag=latest
echo ""
echo "You are trying to publish a new version of GitBook"
echo "⚠️ Currently, because of NPM access, this script can only be run by Samy"
echo ""
echo "Steps:"
echo " 1. Enter the new version"
echo " 2. Packages will be published on NPM"
echo " 3. Commit the changes with message 'Bump version to X 🚀 '"
echo " 4. Tag the commit"
echo " 5. Push"
echo ""
read -p "Version: " version
read -p "NPM Tag (latest or pre) [$defaultTag]:" tag
tag=${tag:-$defaultTag}
echo ""
echo "You are going to publish version ${version} on NPM (tagged as ${tag})"
echo "Press [ENTER] tp confirm"
read
lerna publish --skip-git --repo-version ${version} --npm-tag ${tag} --force-publish=*
|