@chat21/chat21-web-widget 5.1.0-rc4 → 5.1.0-rc5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/Dockerfile +1 -1
- package/deploy_beta.sh +11 -1
- package/deploy_prod.sh +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Dockerfile
CHANGED
|
@@ -29,7 +29,7 @@ COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
29
29
|
RUN rm -rf /usr/share/nginx/html/*
|
|
30
30
|
|
|
31
31
|
## From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder
|
|
32
|
-
COPY --from=builder /ng-app/dist /usr/share/nginx/html
|
|
32
|
+
COPY --from=builder /ng-app/dist/browser /usr/share/nginx/html
|
|
33
33
|
|
|
34
34
|
RUN echo "Chat21 Web Widget Started!!"
|
|
35
35
|
|
package/deploy_beta.sh
CHANGED
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
version=`node -e 'console.log(require("./package.json").version)'`
|
|
3
3
|
echo "version $version"
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
# Get curent branch name
|
|
7
|
+
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
|
8
|
+
remote_name=$(git config --get branch.$current_branch.remote)
|
|
9
|
+
|
|
10
|
+
## Push commit to git
|
|
11
|
+
git add .
|
|
12
|
+
git commit -m "version added: ### $version"
|
|
13
|
+
git push "$remote_name" "$current_branch"
|
|
14
|
+
|
|
5
15
|
if [ "$version" != "" ]; then
|
|
6
16
|
git tag -a "$version" -m "`git log -1 --format=%s`"
|
|
7
17
|
echo "Created a new tag, $version"
|
|
8
|
-
git push
|
|
18
|
+
git push --tags
|
|
9
19
|
npm publish
|
|
10
20
|
fi
|
package/deploy_prod.sh
CHANGED
|
@@ -4,9 +4,18 @@ ECHO "____________WIDGET-V5______________"
|
|
|
4
4
|
echo "CREATING TAG ON GIT FOR version: $version"
|
|
5
5
|
# echo "version $version"
|
|
6
6
|
|
|
7
|
+
# Get curent branch name
|
|
8
|
+
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
|
9
|
+
remote_name=$(git config --get branch.$current_branch.remote)
|
|
10
|
+
|
|
11
|
+
## Push commit to git
|
|
12
|
+
git add .
|
|
13
|
+
git commit -m "version added: ### $version"
|
|
14
|
+
git push "$remote_name" "$current_branch"
|
|
15
|
+
|
|
7
16
|
if [ "$version" != "" ]; then
|
|
8
17
|
git tag -a "$version" -m "`git log -1 --format=%s`"
|
|
9
18
|
echo "Created a new tag, $version"
|
|
10
|
-
git push
|
|
19
|
+
git push --tags
|
|
11
20
|
npm publish
|
|
12
21
|
fi
|