Skip to content

ci: fix npm trusted publishing workflow#1298

Merged
netweng merged 1 commit into
mainfrom
fix/npm-trusted-publish-workflow
Apr 30, 2026
Merged

ci: fix npm trusted publishing workflow#1298
netweng merged 1 commit into
mainfrom
fix/npm-trusted-publish-workflow

Conversation

@netweng
Copy link
Copy Markdown
Member

@netweng netweng commented Apr 30, 2026

Summary

  • replace Lerna 4 publish with npm CLI publishes so GitHub Actions trusted publishing can use npm OIDC
  • add package-version checks so reruns continue publishing when the git tag already exists but npm packages are missing
  • move Tag Check output from deprecated set-output to GITHUB_OUTPUT

Root cause

The failed job created v4100.0.5 successfully, then lerna publish from-package failed while publishing to npm with PUT 404. This repo uses Lerna 4, but Lerna trusted publishing support starts in Lerna 9; with token publishing removed, the old Lerna publish path does not authenticate through npm OIDC. Retry then failed with EUNCOMMIT because the first publish attempt left package manifests/README changed in the workspace.

Verification

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/publish.yml")'
  • npx prettier --check .github/workflows/publish.yml
  • local package check script reports has_unpublished_packages=true for v4100.0.5
  • confirmed npm has no 4100.0.5 package versions while origin already has tag v4100.0.5

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cloudtower-ui-kit Ready Ready Preview, Comment Apr 30, 2026 5:31am

@netweng netweng merged commit e6fb999 into main Apr 30, 2026
3 checks passed
@netweng netweng deleted the fix/npm-trusted-publish-workflow branch April 30, 2026 05:35
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