-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sh
50 lines (38 loc) · 1.37 KB
/
release.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
clear
rm -fr ./node_modules/
rm -fr ./packages/**/node_modules/
rm -fr ./*.tgz
npm install
npm -ws version minor --include-workspace-root --no-git-tag-version
# Get the new version
version=$(npm version --json | jq -r '.root')
echo ""
echo "new version: $version"
echo ""
echo "+--------------------------------+"
echo "| Quality - Core |"
echo "+--------------------------------+"
npx -w=@poppy-ui/core @biomejs/biome format
npx -w=@poppy-ui/core @biomejs/biome lint
echo "+--------------------------------+"
echo "| Quality - Vue |"
echo "+--------------------------------+"
npx -w=@poppy-ui/vue @biomejs/biome format
npx -w=@poppy-ui/vue @biomejs/biome lint
echo "+--------------------------------+"
echo "| Build - Core |"
echo "+--------------------------------+"
npm -w=@poppy-ui/core run build
npm -w=@poppy-ui/core link
npm -w=@poppy-ui/docs link
echo "+--------------------------------+"
echo "| Build - Vue |"
echo "+--------------------------------+"
# Have to uninstall, because install an unpublishde version does not work.
# even if the package is part of the workspace
npm -w=@poppy-ui/vue uni @poppy-ui/core
npm -w=@poppy-ui/vue uni @poppy-ui/docs
# Install the workspace version of the package
npm -w=@poppy-ui/vue i @poppy-ui/core@$version
npm -w=@poppy-ui/vue i -D @poppy-ui/docs@$version