diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8ad1d8f..a758f7f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -209,13 +209,15 @@ jobs: if [[ "${{ steps.detect.outputs.is_tag }}" == "true" ]]; then NPM_VERSION="${BASE_VERSION}" NPM_TAG="latest" - GHOSTTY_WEB_DEP="latest" + # Pin to exact version to avoid npx cache issues with transitive deps + GHOSTTY_WEB_DEP="${BASE_VERSION}" else GIT_COMMIT=$(git rev-parse --short HEAD) COMMITS_SINCE_TAG=$(git rev-list --count HEAD ^$(git describe --tags --abbrev=0 2>/dev/null || echo HEAD) 2>/dev/null || echo "0") NPM_VERSION="${BASE_VERSION}-next.${COMMITS_SINCE_TAG}.g${GIT_COMMIT}" NPM_TAG="next" - GHOSTTY_WEB_DEP="next" + # Pin to exact version to avoid npx cache issues with transitive deps + GHOSTTY_WEB_DEP="${NPM_VERSION}" fi echo "version=${NPM_VERSION}" >> $GITHUB_OUTPUT