Skip to content

Commit 4591ab8

Browse files
committed
fix tag fetch
1 parent b291790 commit 4591ab8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build-sample-apps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070

7171
steps:
7272
- uses: actions/checkout@v4
73+
- name: Fetch Latest Tag
74+
run: git fetch --depth=1 --tags
7375

7476
# Install CLI tools, Ruby, and Ruby dependencies for Fastlane
7577

Apps/APN/src/utils/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ function getSdkVersion() {
6060
const isPathDependency =
6161
sdkPackage.resolved && sdkPackage.resolved.startsWith('file:');
6262
if (isPathDependency) {
63-
const commitsAheadCount = Env.commitsAheadCount;
6463
return `${version}-${resolveValidOrElse(
65-
commitsAheadCount,
64+
Env.commitsAheadCount,
6665
() => 'as-source'
6766
)}`;
6867
}

0 commit comments

Comments
 (0)