mirror of
https://github.com/meshtastic/protobufs.git
synced 2026-04-20 22:13:55 +00:00
Update .github/workflows/publish.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
518f8e6fb3
commit
491783b164
1 changed files with 15 additions and 1 deletions
16
.github/workflows/publish.yml
vendored
16
.github/workflows/publish.yml
vendored
|
|
@ -58,8 +58,22 @@ jobs:
|
|||
run: buf generate
|
||||
|
||||
- name: Move generated files to lib root
|
||||
run: mv packages/ts/lib/meshtastic/*_pb.ts packages/ts/lib/
|
||||
run: |
|
||||
set -euo pipefail
|
||||
src_dir="packages/ts/lib/meshtastic"
|
||||
dest_dir="packages/ts/lib"
|
||||
|
||||
if [ ! -d "$src_dir" ]; then
|
||||
echo "Expected source directory '$src_dir' does not exist. 'buf generate' may have failed or changed its output paths." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! compgen -G "$src_dir"/*_pb.ts > /dev/null; then
|
||||
echo "No '*_pb.ts' files found in '$src_dir'. 'buf generate' may have produced no TypeScript files or changed their naming." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv "$src_dir"/*_pb.ts "$dest_dir"/
|
||||
- name: Show generated files
|
||||
run: |
|
||||
echo "=== packages/ts contents ==="
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue