Skip to content

Commit 486b83c

Browse files
committed
fix(ci): handle same filename in package rename step
1 parent f077633 commit 486b83c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,15 @@ jobs:
6060
working-directory: packages/core
6161
run: pnpm pack
6262

63-
- name: Find and rename package file
63+
- name: Verify package file
6464
working-directory: packages/core
6565
run: |
6666
PKG_FILE=$(ls *.tgz | head -1)
6767
echo "Found package: $PKG_FILE"
68-
mv "$PKG_FILE" tracker-core-${{ steps.version.outputs.version }}.tgz
68+
TARGET_NAME="tracker-core-${{ steps.version.outputs.version }}.tgz"
69+
if [ "$PKG_FILE" != "$TARGET_NAME" ]; then
70+
mv "$PKG_FILE" "$TARGET_NAME"
71+
fi
6972
ls -la *.tgz
7073
7174
- name: Generate changelog

0 commit comments

Comments
 (0)