Skip to content

Commit 9ae6f99

Browse files
authored
chore: set version correctly across envs (#815)
1 parent f48d0bb commit 9ae6f99

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/pre_release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ jobs:
169169
bun build --compile --target=bun-windows-x64 --outfile test index.ts
170170
bun build --compile --target=bun-windows-x64-baseline --outfile test index.ts
171171
172-
# Check version consistency and increment pre-release version number for beta only.
173-
- name: Bump pre-release version
174-
run: yarn tsx ./.github/scripts/before-beta-release.ts
172+
- name: Set pre-release version
173+
run: yarn version ${{ needs.update_changelog.outputs.pre_release_version }}
175174

176175
- name: Build Bundles
177176
run: yarn insert-cli-metadata && yarn build-bundles

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ jobs:
192192
bun build --compile --target=bun-windows-x64 --outfile test index.ts
193193
bun build --compile --target=bun-windows-x64-baseline --outfile test index.ts
194194
195+
- name: Set version
196+
run: yarn version ${{ needs.release_metadata.outputs.version_number }}
197+
195198
- name: Build Bundles
196199
run: yarn insert-cli-metadata && yarn build-bundles
197200

scripts/install/install.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@ for executable_name in "${executable_names[@]}"; do
190190
fi
191191
done
192192

193-
success "Apify CLI was installed successfully"
194-
195193
tildify() {
196194
if [[ $1 = $HOME/* ]]; then
197195
local replacement=\~/
@@ -202,8 +200,11 @@ tildify() {
202200
fi
203201
}
204202

203+
success "Apify CLI was installed successfully to $Bold_Green$(tildify "$bin_dir/apify")"
204+
success "Actor CLI was installed successfully to $Bold_Green$(tildify "$bin_dir/actor")"
205+
205206
if command -v apify >/dev/null; then
206-
success "Run 'apify' to get started"
207+
success "Run 'apify --help' to get started"
207208
exit
208209
fi
209210

@@ -338,7 +339,10 @@ info "To get started, run:"
338339
echo
339340

340341
if [[ $refresh_command ]]; then
341-
info_bold " $refresh_command"
342+
info_bold " $refresh_command $(info "(if the shell is not automatically refreshed)")"
342343
fi
343344

344345
info_bold " apify --help"
346+
echo
347+
348+
exec $refresh_command

0 commit comments

Comments
 (0)