Skip to content

Commit

Permalink
feat: fix branch formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
xavidop committed Jan 29, 2025
1 parent fa8188f commit 9bc2fd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/aws/invalidate_cloudfront_distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
description: Name of the step
type: string
default: Invalidate Cloudfront Distribution
cloudfron_distribution_id:
cloudfront_distribution_id:
description: AWS Cloudfront Distribution ID
type: string
paths:
Expand All @@ -13,6 +13,6 @@ steps:
- run:
name: << parameters.step_name >>
environment:
DISTRIBUTION: << parameters.cloudfron_distribution_id >>
DISTRIBUTION: << parameters.cloudfront_distribution_id >>
PATHS: << parameters.paths >>
command: <<include(scripts/aws/invalidate_cloudfront_distribution.sh)>>
8 changes: 6 additions & 2 deletions src/jobs/monorepo/monorepo_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ steps:
name: Release Monorepo
command: |-
PRERELEASE="<< parameters.prerelease >>"
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BRANCH_FORMATTED=$(echo $BRANCH | sed 's/[^a-zA-Z0-9.-]/-/g')
if [ "$PRERELEASE" = "true" ]; then
SENTRY_PROJECT=<< parameters.sentry_project >> HUSKY=0 npx [email protected] publish prerelease \
--message "<< parameters.commit_message >>" --yes \
--no-push --no-git-tag-version --canary \
--no-push --no-git-tag-version --canary --preid $BRANCH_FORMATTED \
--conventional-commits --no-verify-access << parameters.publish_args >>
else
SENTRY_PROJECT=<< parameters.sentry_project >> HUSKY=0 npx [email protected] publish \
Expand All @@ -96,10 +98,12 @@ steps:
name: Release Monorepo
command: |-
PRERELEASE="<< parameters.prerelease >>"
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BRANCH_FORMATTED=$(echo $BRANCH | sed 's/[^a-zA-Z0-9.-]/-/g')
if [ "$PRERELEASE" = "true" ]; then
SENTRY_PROJECT=<< parameters.sentry_project >> HUSKY=0 npx --package @lerna-lite/[email protected] lerna publish prerelease \
--message "<< parameters.commit_message >>" --yes \
--no-push --no-git-tag-version --canary \
--no-push --no-git-tag-version --canary --preid $BRANCH_FORMATTED \
--conventional-commits --no-verify-access << parameters.publish_args >>
else
SENTRY_PROJECT=<< parameters.sentry_project >> HUSKY=0 npx --package @lerna-lite/[email protected] lerna publish \
Expand Down

0 comments on commit 9bc2fd2

Please sign in to comment.