Skip to content

fix: auto-publish npm releases from main and update Pages actions - #319

Closed
sohhamm wants to merge 1 commit into
mainfrom
fix/npm-auto-publish
Closed

sohhamm wants to merge 1 commit into
mainfrom
fix/npm-auto-publish

Conversation

@sohhamm

@sohhamm sohhamm commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Merging version 4.1.1 to main deployed the showcase but did not publish npm because the release workflow only accepted tag pushes. Publish unpublished package versions on main pushes, retain tag releases with version validation, keep PRs build-only, and serialize publishing to prevent main/tag races. Registry errors fail the release rather than being treated as missing versions.

Upgrade Pages upload/deploy actions to v5 (Node 24) and pin Ubuntu 24.04 runners to remove the deprecation and runner migration annotations.

Validation: vp install, vp run build, vp run site:build, and git diff --check pass locally. The merge will publish the currently unpublished 4.1.1 version.

@sohhamm sohhamm closed this Nov 17, 2026
@sohhamm
sohhamm deleted the fix/npm-auto-publish branch November 17, 2026 05:32
@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR changes npm publishing and the showcase deployment workflow.

Fix the shared release group before merging because newer pushes can cancel waiting releases.

Fix All in Claude CodeFindings

  1. P1 Waiting releases get canceled ▶
  2. P2 Release instructions are outdated ▶

Summary

The PR publishes unpublished package versions from main, preserves tag-version checks, and keeps pull requests build-only.

  • Main pushes publish package versions that npm does not have.
  • The showcase build and deploy jobs use Ubuntu 24.04 and Pages actions v5.

Acknowledged intent: sohhamm explicitly requests publication from main; that behavior itself is not a finding.

Reviews (1) · Last reviewed commit: "fix: publish new npm versions on main an..." · Reviewed by Greptile

Comment on lines +11 to +13
concurrency:
group: npm-${{ github.event_name == 'push' && 'publish' || github.ref }}
cancel-in-progress: false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Waiting releases get canceled

All pushes share npm-publish, but GitHub Actions keeps only one running run and one pending run per group. cancel-in-progress: false protects the running run, not the pending one. If one release is running, another version's tag is pending, and a newer main push arrives, the tag run is canceled and that version never publishes. Use a queue that preserves waiting releases while keeping publication serialized.

Fix in Claude Code


on:
push:
branches: [main]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Release instructions are outdated

The Releasing section in README.md still says only tags publish and branch pushes never release to npm. This workflow now publishes an unpublished version as soon as it reaches main, so maintainers following those instructions could publish before they expect to. Update the release instructions alongside this change.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant