Skip to content

Commit 853bc65

Browse files
authored
fix: pin exact ghostty-web version in demo to avoid npx cache issues (#64)
1 parent 7b2dd99 commit 853bc65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,15 @@ jobs:
209209
if [[ "${{ steps.detect.outputs.is_tag }}" == "true" ]]; then
210210
NPM_VERSION="${BASE_VERSION}"
211211
NPM_TAG="latest"
212-
GHOSTTY_WEB_DEP="latest"
212+
# Pin to exact version to avoid npx cache issues with transitive deps
213+
GHOSTTY_WEB_DEP="${BASE_VERSION}"
213214
else
214215
GIT_COMMIT=$(git rev-parse --short HEAD)
215216
COMMITS_SINCE_TAG=$(git rev-list --count HEAD ^$(git describe --tags --abbrev=0 2>/dev/null || echo HEAD) 2>/dev/null || echo "0")
216217
NPM_VERSION="${BASE_VERSION}-next.${COMMITS_SINCE_TAG}.g${GIT_COMMIT}"
217218
NPM_TAG="next"
218-
GHOSTTY_WEB_DEP="next"
219+
# Pin to exact version to avoid npx cache issues with transitive deps
220+
GHOSTTY_WEB_DEP="${NPM_VERSION}"
219221
fi
220222
221223
echo "version=${NPM_VERSION}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)