Skip to content

Commit

Permalink
chore: add local publish helper for release verification against ampl…
Browse files Browse the repository at this point in the history
…ify-backend (aws-amplify#2517)
  • Loading branch information
palpatim authored May 1, 2024
1 parent 70520a2 commit 5c91370
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions codebuild_specs/scripts/local_publish_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function changeSudoNpmGlobalPath {

function setNpmRegistryUrlToLocal {
# Set registry to local registry
echo "Setting custom NPM registry: $custom_registry_url."
npm set registry "$custom_registry_url"
yarn config set registry "$custom_registry_url"
}
Expand Down
8 changes: 8 additions & 0 deletions shared-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ function _publishToLocalRegistry {

_generateChangeLog
}
function _publishLocalWorkspace {
source codebuild_specs/scripts/local_publish_helpers.sh
startLocalRegistry "$(pwd)/codebuild_specs/scripts/verdaccio.yaml"
setNpmRegistryUrlToLocal
setNpmTag
yarn publish-to-verdaccio
unsetNpmRegistryUrl
}
function _generateChangeLog {
echo "Generate Change Log"
git reset --hard HEAD
Expand Down

0 comments on commit 5c91370

Please sign in to comment.