-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathrelease.sh
More file actions
34 lines (25 loc) · 591 Bytes
/
Copy pathrelease.sh
File metadata and controls
34 lines (25 loc) · 591 Bytes
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
27
28
29
30
31
32
33
34
#!/bin/sh
# immediately exit if any of the shell commands fail
set -e
# build
npm run build
# exit if there were any uncommitted files
if [[ $(git diff) != '' ]]; then
echo 'Error: Uncommitted files'
exit 1
fi
# merge `next` into `main`
git checkout main
git merge next
# create a new version and publish to `npm`
npm run packages-version
npm run packages-publish
# push `main`, including tags
git push --no-verify --tags origin main
# merge `main` into `next`
git checkout next
git merge main
# push `next`
git push --no-verify origin next
# update docs
npm run website-deploy