@progress/kendo-common-tasks 8.0.7-dev.18 → 8.0.7-dev.23
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/bin/publish-develop-to-master +19 -0
- package/package.json +4 -4
- package/bin/ci-semantic-release +0 -44
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
set -o verbose
|
|
4
|
+
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
5
|
+
|
|
6
|
+
if [ "$BRANCH" != "master" ]; then
|
|
7
|
+
echo "Refusing to release from $BRANCH. This script should be running in master."
|
|
8
|
+
exit 1
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
echo Fast-forwarding master to develop
|
|
12
|
+
set -o errexit
|
|
13
|
+
git fetch --quiet
|
|
14
|
+
git reset --hard origin/master
|
|
15
|
+
git merge --ff-only --quiet origin/develop
|
|
16
|
+
set +o errexit
|
|
17
|
+
|
|
18
|
+
echo Pushing master
|
|
19
|
+
git push origin master
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-common-tasks",
|
|
3
3
|
"description": "Build helpers and gulp tasks for Kendo UI components",
|
|
4
|
-
"version": "8.0.7-dev.
|
|
4
|
+
"version": "8.0.7-dev.23+27878fc",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/telerik/kendo-build-tasks.git"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
14
|
"ci-utils": "./bin/ci-utils",
|
|
15
|
-
"ci-
|
|
16
|
-
"
|
|
15
|
+
"ci-commit-snapshots": "./bin/ci-commit-snapshots",
|
|
16
|
+
"publish-develop-to-master": "./bin/publish-develop-to-master"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|
|
19
19
|
"Kendo UI"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "27878fc04b7750ad2608d87147b5fcdf56e94367"
|
|
50
50
|
}
|
package/bin/ci-semantic-release
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
LOCAL_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
|
4
|
-
BRANCH=${BRANCH:-$LOCAL_BRANCH}
|
|
5
|
-
|
|
6
|
-
# Override branch for Semantic Prerelease
|
|
7
|
-
export GIT_LOCAL_BRANCH=$BRANCH
|
|
8
|
-
|
|
9
|
-
REPOSITORY="telerik/$REPO_NAME"
|
|
10
|
-
if [[ $GITHUB_REPOSITORY ]]; then
|
|
11
|
-
REPOSITORY=$GITHUB_REPOSITORY
|
|
12
|
-
fi
|
|
13
|
-
|
|
14
|
-
if [[ "$IS_PULL_REQUEST" == true ]]; then
|
|
15
|
-
echo "Skipping release for PR builds"
|
|
16
|
-
exit 0;
|
|
17
|
-
fi
|
|
18
|
-
|
|
19
|
-
if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != "develop" ]]; then
|
|
20
|
-
echo "Skipping release for branches other than \"master\" and \"develop\""
|
|
21
|
-
exit 0;
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
if [[ "$REPOSITORY" == *-base ]]; then
|
|
25
|
-
echo "Skipping release for base repo"
|
|
26
|
-
exit 0;
|
|
27
|
-
fi
|
|
28
|
-
|
|
29
|
-
THIS_YEAR=$(date +%Y)
|
|
30
|
-
REPLACE_YEAR="s/\$YEAR/$THIS_YEAR/g"
|
|
31
|
-
sed -i "$REPLACE_YEAR" LICENSE.md
|
|
32
|
-
sed -i "$REPLACE_YEAR" NOTICE.txt
|
|
33
|
-
sed -i "$REPLACE_YEAR" README.md
|
|
34
|
-
|
|
35
|
-
ERROR="$(npx -c 'semantic-release pre && semantic-prerelease publish --public && semantic-release post' 2>&1)"
|
|
36
|
-
EXIT_CODE=$?
|
|
37
|
-
|
|
38
|
-
echo "$ERROR"
|
|
39
|
-
|
|
40
|
-
if [ $EXIT_CODE -eq 1 ] && [[ $ERROR != *"ENOCHANGE"* ]]; then
|
|
41
|
-
exit 1;
|
|
42
|
-
else
|
|
43
|
-
exit 0;
|
|
44
|
-
fi
|