Skip to content

Commit 449f382

Browse files
Xiaoyi Chenjag-j
Xiaoyi Chen
authored andcommitted
fix: fix backport to develop step (#349)
1 parent e6bc2f7 commit 449f382

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.circleci/config.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ commands:
6060
npx lerna version << pipeline.parameters.publish-type >> --force-publish --no-git-tag-version --exact --yes
6161
git add .
6262
export RELEASE_TAG="$(node -pe "require('./lerna.json').version")"
63-
git commit -m "chore: updated version $RELEASE_TAG"
63+
git commit -m --allow-empty "chore: updated version $RELEASE_TAG"
6464
- run:
6565
name: Build project
6666
command: yarn build
@@ -248,15 +248,18 @@ jobs:
248248
steps:
249249
- attach_workspace:
250250
at: ~/cli
251+
- gh-config
252+
- ssh-config
251253
- run:
252254
name: Backport version bump to develop branch
253255
command: |
254256
export LATEST_VERSION=$(git describe --tags --abbrev=0)
255257
git checkout main
256258
git checkout -b portToDevelop-${LATEST_VERSION}
259+
git checkout -- .
257260
git rebase --onto origin/develop portToDevelop-${LATEST_VERSION}^ portToDevelop-${LATEST_VERSION}
258261
git checkout develop
259-
git merge -ff-only portToDevelop-${LATEST_VERSION}
262+
git merge --ff-only portToDevelop-${LATEST_VERSION}
260263
git push origin develop
261264
262265
workflows:

0 commit comments

Comments
 (0)