Skip to content

Commit 85f0976

Browse files
committed
fix: add --code-coverage flag to package version creation
- Add --code-coverage flag to sf package version create command - Required for package promotion to released status - Fixes 'Code coverage has not been run for this version' error - Enables successful promotion of latest releases
1 parent 6992426 commit 85f0976

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/create-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,14 @@ jobs:
390390
391391
# Create a new package version
392392
echo "Creating package version for package: $SF_PACKAGE1_ID"
393-
echo "Command: sf package version create --package '$SF_PACKAGE1_ID' --installation-key-bypass --wait 10 --target-dev-hub pkgorg --json"
393+
echo "Command: sf package version create --package '$SF_PACKAGE1_ID' --installation-key-bypass --code-coverage --wait 10 --target-dev-hub pkgorg --json"
394394
395395
# Run the command and capture both output and exit code
396396
set +e # Don't exit on error, we'll handle it manually
397397
PACKAGE_VERSION_OUTPUT=$(sf package version create \
398398
--package "$SF_PACKAGE1_ID" \
399399
--installation-key-bypass \
400+
--code-coverage \
400401
--wait 10 \
401402
--target-dev-hub pkgorg \
402403
--json 2>&1)

0 commit comments

Comments
 (0)