Skip to content

Commit 4f7cbca

Browse files
fix: one line command to reuse variable
1 parent 7b15690 commit 4f7cbca

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ jobs:
6363
- attach_workspace:
6464
at: /home/circleci
6565
- run:
66-
name: "Extract release candidate version"
67-
command: RC_TAG=`echo $CIRCLE_TAG | cut -c 2-` && echo "Extracted version $RC_TAG"
68-
- run:
69-
name: "Change default version from package.json for Git tag"
70-
command: echo "Use version $RC_TAG as tag" && npm version -git-tag-version false $RC_TAG
66+
name: "Extract release candidate version and update package.json"
67+
command: RC_TAG=`echo $CIRCLE_TAG | cut -c 2-` && echo "Extracted version $RC_TAG" && npm version -git-tag-version false $RC_TAG
7168
- run: npm publish --tag rc --access public
7269
workflows:
7370
main-workflow:

0 commit comments

Comments
 (0)