Skip to content

Commit

Permalink
fix: one line command to reuse variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JoscelynJean committed Mar 21, 2022
1 parent 7b15690 commit 4f7cbca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,8 @@ jobs:
- attach_workspace:
at: /home/circleci
- run:
name: "Extract release candidate version"
command: RC_TAG=`echo $CIRCLE_TAG | cut -c 2-` && echo "Extracted version $RC_TAG"
- run:
name: "Change default version from package.json for Git tag"
command: echo "Use version $RC_TAG as tag" && npm version -git-tag-version false $RC_TAG
name: "Extract release candidate version and update package.json"
command: RC_TAG=`echo $CIRCLE_TAG | cut -c 2-` && echo "Extracted version $RC_TAG" && npm version -git-tag-version false $RC_TAG
- run: npm publish --tag rc --access public
workflows:
main-workflow:
Expand Down

0 comments on commit 4f7cbca

Please sign in to comment.