Skip to content

Commit e89526c

Browse files
Fix dist-tag verification for GitHub Packages (#15)
1 parent 5bd3545 commit e89526c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ jobs:
244244
EXPECTED_VERSION="${{ steps.meta.outputs.publish_version }}"
245245
246246
for attempt in 1 2 3 4 5 6; do
247-
ACTUAL_VERSION="$(npm view "$PACKAGE_NAME" "dist-tags.${PUBLISH_TAG}" --registry https://npm.pkg.github.com 2>/dev/null || true)"
247+
ACTUAL_VERSION="$(npm view "${PACKAGE_NAME}@${PUBLISH_TAG}" version --registry https://npm.pkg.github.com 2>/dev/null || true)"
248248
249249
if [ "$ACTUAL_VERSION" = "$EXPECTED_VERSION" ]; then
250250
echo "Verified dist-tag ${PUBLISH_TAG}: ${PACKAGE_NAME}@${ACTUAL_VERSION}"

0 commit comments

Comments
 (0)