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 14821e3 commit 8b2fb7c
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/release-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,19 @@ jobs:
cd code
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
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
echo "Unpublishing the existing version: $version"
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

0 comments on commit 8b2fb7c

Please sign in to comment.