Skip to content

Commit be010b8

Browse files
bump
1 parent aacce66 commit be010b8

File tree

6 files changed

+32
-41
lines changed

6 files changed

+32
-41
lines changed

.deploy/pipelines/scripts/ci/bumpCommit.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
#!/bin/sh
2-
3-
echo ${GITHUB_TOKEN} | gh auth login --with-token
4-
export TARGET_BRANCH=$(gh api graphql -f repositoryOwner="${CF_REPO_OWNER}" -f repositoryName="${CF_REPO_NAME}" -f branchName="${CF_BRANCH}" -f query='
5-
query getTargetBranch($repositoryOwner: String!, $repositoryName: String!, $branchName: String!) {
6-
organization(login: $repositoryOwner) {
7-
repository(name: $repositoryName) {
8-
defaultBranchRef {
9-
name
10-
}
11-
pullRequests(first: 1, headRefName: $branchName) {
12-
edges {
13-
node {
14-
baseRefName
15-
}
16-
}
17-
}
18-
}
19-
}
20-
}
21-
' | jq -r '.data.organization.repository | .pullRequests.edges[0].node.baseRefName // .defaultBranchRef.name')
22-
echo "Target Branch: ${TARGET_BRANCH}"
23-
export TARGET_VERSION=$(git show origin/${TARGET_BRANCH}:service.yaml | yq -r ".version" -)
24-
echo "Target Version: ${TARGET_VERSION}"
25-
export PACKAGE_VERSION=$(if [ -f VERSION ]; then cat VERSION; else yq -r ".version" service.yaml; fi;)
26-
echo "Package Version: ${PACKAGE_VERSION}"
27-
semver-cli greater ${PACKAGE_VERSION} ${TARGET_VERSION}
28-
1+
##!/bin/sh
2+
#
3+
#echo ${GITHUB_TOKEN} | gh auth login --with-token
4+
#export TARGET_BRANCH=$(gh api graphql -f repositoryOwner="${CF_REPO_OWNER}" -f repositoryName="${CF_REPO_NAME}" -f branchName="${CF_BRANCH}" -f query='
5+
# query getTargetBranch($repositoryOwner: String!, $repositoryName: String!, $branchName: String!) {
6+
# organization(login: $repositoryOwner) {
7+
# repository(name: $repositoryName) {
8+
# defaultBranchRef {
9+
# name
10+
# }
11+
# pullRequests(first: 1, headRefName: $branchName) {
12+
# edges {
13+
# node {
14+
# baseRefName
15+
# }
16+
# }
17+
# }
18+
# }
19+
# }
20+
# }
21+
#' | jq -r '.data.organization.repository | .pullRequests.edges[0].node.baseRefName // .defaultBranchRef.name')
22+
#echo "Target Branch: ${TARGET_BRANCH}"
23+
#export TARGET_VERSION=$(git show origin/${TARGET_BRANCH}:service.yaml | yq -r ".version" -)
24+
#echo "Target Version: ${TARGET_VERSION}"
25+
#export PACKAGE_VERSION=$(if [ -f VERSION ]; then cat VERSION; else yq -r ".version" service.yaml; fi;)
26+
#echo "Package Version: ${PACKAGE_VERSION}"
27+
#semver-cli greater ${PACKAGE_VERSION} ${TARGET_VERSION}
28+
#

.deploy/pipelines/scripts/promote/release.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
release-it --patch --ci

.release-it.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
"hooks": {
1414
"before:init": ["echo init"],
1515
"after:bump": "echo 'afterbump';.deploy/pipelines/scripts/ci/name-version.sh > ./service.yaml",
16-
"after:git:stage": "echo After git stage",
17-
"after:git:commit": "echo After git commit",
1816
"after:git:release": "echo After git push, before github release; echo 'after:git';git tag -f latest; git tag latest --force;git push --tags --force",
1917
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
2018
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"test": "jest --passWithNoTests",
1919
"test:watch": "jest --watch",
2020
"test:cov": "jest --coverage",
21-
"ci-test": "yarn install && yarn test && yarn prebuild"
21+
"ci-test": "yarn install && yarn test && yarn prebuild",
22+
"release": ""
2223
},
2324
"engines": {
2425
"node": "16.14.2"

0 commit comments

Comments
 (0)