Skip to content

Commit

Permalink
fix: publish-stable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bapmrl committed Jan 11, 2024
1 parent 0477a50 commit 19017aa
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/publish-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,17 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git config user.name "${GITHUB_ACTOR}"
inputs=$(echo '${{ toJSON(github.event.inputs) }}' | jq -c)
package_names=$(echo $inputs | jq -r 'keys | .[]')
specifiers=""
for package in $package_names; do
package_release_type=$(echo $inputs | jq -r --arg k "$package" '.[$k]')
if [[ $package == "slicemachine/"* && $package_release_type != "decline" ]]; then
specifiers+="@$package:$package_release_type "
elif [ $package_release_type != "decline" ]; then
specifiers+="$package:$package_release_type "
fi
for package_name in $package_names; do
package_release_type=$(echo $inputs | jq -r --arg k "$package_name" '.[$k]')
if [[ $package_name == "slicemachine/"* && $package_release_type != "decline" ]]; then
specifiers+="@$package_name:$package_release_type "
elif [ $package_release_type != "decline" ]; then
specifiers+="$package_name:$package_release_type "
fi
done
echo yarn publish stable --dry-run $specifiers
yarn publish stable --dry-run $specifiers

0 comments on commit 19017aa

Please sign in to comment.