Skip to content

Commit

Permalink
chore: update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 committed Sep 17, 2024
1 parent 5039a05 commit 9eed2cd
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/release-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,16 @@ jobs:
cd code
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
echo "Unpublishing the existing version: $version"
pnpm unpublish @expediagroup/[email protected]
pnpm unpublish @expediagroup/[email protected]
pnpm unpublish @expediagroup/[email protected]
pnpm unpublish @expediagroup/[email protected]
pnpm unpublish @expediagroup/[email protected]
pnpm unpublish @expediagroup/[email protected]
pnpm unpublish @expediagroup/[email protected]
pnpm unpublish @expediagroup/[email protected]
# version="$(pnpm pkg get version --workspace='@expediagroup/lodging-connectivity-sdk' | sed -n 's/.*"\(.*\)".*/\1/p')"
# echo "Current version: $version"
#
# pnpm i
#
# if [ "${{ inputs.channel }}" == "production" ]; then
# echo "Publishing a production release: $version"
# pnpm run publish:prod
# elif [ "${{ inputs.channel }}" == "beta" ]; then
# echo "Publishing a beta release: $version"
# pnpm run publish:beta
# fi
version="$(pnpm pkg get version --workspace='@expediagroup/lodging-connectivity-sdk' | sed -n 's/.*"\(.*\)".*/\1/p')"
echo "Current version: $version"
pnpm i
if [ "${{ inputs.channel }}" == "production" ]; then
echo "Publishing a production release: $version"
pnpm run publish:prod
elif [ "${{ inputs.channel }}" == "beta" ]; then
echo "Publishing a beta release: $version"
pnpm run publish:beta
fi

0 comments on commit 9eed2cd

Please sign in to comment.