Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down