Skip to content

fix(ci): use inputs.version for npm publish check#322

Merged
namastex888 merged 2 commits into
mainfrom
fix/publish-version-check
Dec 18, 2025
Merged

fix(ci): use inputs.version for npm publish check#322
namastex888 merged 2 commits into
mainfrom
fix/publish-version-check

Conversation

@namastex888

Copy link
Copy Markdown
Contributor

Bug Fix

The publish job was checking if the OLD version exists on npm instead of the NEW version.

Root cause: The publish job reads version from npx-cli/package.json at checkout time, but at that point the repo still has the pre-bump version (rc.38). The version job bumps to rc.39 and pushes, but the publish job's checkout happened before that push.

Fix: Use inputs.version passed from release.yml which has the correct NEW version.

Impact: This caused rc.39 npm publish to be skipped because it checked if rc.38 exists (it does).

Test plan

  • Merge with rc label to trigger rc.40 release
  • Verify npm publish uses correct version (rc.40)
  • Verify @automagik/forge@0.8.7-rc.40 published to npm

@namastex888 namastex888 added the rc Release candidate - triggers RC automation label Dec 16, 2025
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +529 to +533
if [[ -n "${{ inputs.version }}" ]]; then
VER="${{ inputs.version }}"
echo "Using version from workflow input: $VER"
else
VER=$(node -e "console.log(require('./npx-cli/package.json').version)")

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 Badge Publish check mismatches working-tree version

The new block at lines 529-533 sets VER from the workflow input, but the publish job still checks out the original ref (line 407) where npx-cli/package.json remains at the pre-bump version because the release workflow invokes this reusable workflow before the bumped commit is available. In release runs, npm view now looks for the bumped version while npm publish packages the old one, so publish will attempt to republish an already existing version and fail. Align the checkout or package.json to the bumped version before publishing.

Useful? React with 👍 / 👎.

The build and publish jobs were checking out the default ref (pre-bump),
causing them to build and publish the OLD version instead of the NEW one.

Changes:
1. Build jobs: checkout v${{ inputs.version }} tag (created by version job)
2. Publish job: same checkout ref as build jobs
3. Publish job: use inputs.version for npm version check

This ensures:
- Build compiles the correct version code
- npm publish publishes the correct version
@namastex888
namastex888 force-pushed the fix/publish-version-check branch from 07e7927 to 15c9a2c Compare December 16, 2025 23:46
Comprehensive analysis of 187 commits behind BloopAI/vibe-kanban
(v0.0.115 → v0.0.138). Tech Council reviewed (2/3 MODIFY).

Key findings:
- 5 critical commits (SQLite perf, memory fix, security)
- 26 high-value cherry-picks (cleanup + bug fixes)
- 35 evaluate (executors, SaaS features for team collab)
- 90 skip (branding, i18n, UI polish)
- 6 implementation phases defined

New crates in upstream: crates/remote, crates/review
Re-evaluated for SaaS/team collaboration direction.
@namastex888

Copy link
Copy Markdown
Contributor Author

@codex review this pr

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@namastex888
namastex888 merged commit 26a65a6 into main Dec 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rc Release candidate - triggers RC automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant