Skip to content

Commit ff0d96e

Browse files
committed
test: changed order of ifs
1 parent 170831f commit ff0d96e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/npm-audio-package-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ jobs:
7070

7171
- name: Set tag
7272
run: |
73-
if [[ "${{ inputs.latest-build }}" != "true" ]]; then
74-
echo "TAG=audio-api-nightly" >> $GITHUB_ENV
75-
else if [[ "${{ inputs.old-version-patch }}" == "true" ]]; then
73+
if [[ "${{ inputs.old-version-patch }}" == "true" ]]; then
7674
CURRENT_VERSION=$(npm view react-native-audio-api version | cut -d. -f1,2)
7775
if [[ "$CURRENT_VERSION" == "${{ env.TRUNKATED_VERSION }}" ]]; then
7876
echo "Old version patch requested but current published version matches package version. Exiting."
7977
exit 1
8078
fi
8179
echo "TAG=rn-audio-api-$TRUNKATED_VERSION" >> $GITHUB_ENV
80+
else if [[ "${{ inputs.latest-build }}" != "true" ]]; then
81+
echo "TAG=audio-api-nightly" >> $GITHUB_ENV
8282
else
8383
echo "TAG=latest" >> $GITHUB_ENV
8484
fi

0 commit comments

Comments
 (0)