Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robhogan authored Sep 20, 2023
1 parent 34c4694 commit 93dffda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ jobs:
- image: *node_lts_image
steps:
- checkout
- yarn_install
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run:
name: Publish based on tag conditions
command: |
set +e
# Reduce a semver tag name to a Metro's release branch naming convention, eg v0.1.2-alpha.3 -> 0.1.x
RELEASE_BRANCH=$(echo "$CIRCLE_TAG" | awk -F. '{print substr($1, 2) "." $2 ".x"}')
echo "Release branch: $RELEASE_BRANCH"
Expand All @@ -128,7 +128,6 @@ jobs:
fi
TAG="latest"
[ "$TAG_ON_RELEASE_BRANCH" -eq 1 ] && TAG=$RELEASE_BRANCH
set -e
npm run publish --tag=$TAG --dry-run
- run: rm ~/.npmrc

Expand Down

0 comments on commit 93dffda

Please sign in to comment.