Skip to content

fix(ci): update publish-guard tarball glob after @opita -> @opitacode rename - #4

Merged
nicourrutia98 merged 1 commit into
masterfrom
fix/publish-guard-glob-after-rename
Jul 23, 2026
Merged

nicourrutia98 merged 1 commit into
masterfrom
fix/publish-guard-glob-after-rename

Conversation

@nicourrutia98

Copy link
Copy Markdown
Contributor

Summary

Fix the publish-guard CI workflow after the package rename in PR #3 (@opita/ocais → @opitacode/ocais).

The workflow had two hardcoded tarball globs (opita-ocais-*.tgz) that no longer match the new package name. Tag v3.0.0 triggered the CI, which failed at the "Verify dist/ in tarball" step with:

ls: cannot access 'opita-ocais-*.tgz': No such file or directory

(Confirmed in run #29974882481.)

Changes (1 file, 5 insertions, 2 deletions)

.github/workflows/publish-guard.yml:

  • Glob opita-ocais-*.tgz → opitacode-ocais-*.tgz (2 places: ls and upload-artifact path)
  • Added a 3-line NOTE comment warning that the glob must match the name in package.json

Verification

  • Local npm pack --dry-run confirms the new tarball name is opitacode-ocais-3.0.0.tgz and contains all 4 critical files (dist/index.js, dist/index.d.ts, dist/lambda/sse-writer.js, dist/providers/openai-compatible.js).
  • The other 132/132 tests pass on master.
  • Once this PR is merged, the tag v3.0.0 needs to be re-cut (delete + re-push) so the CI re-runs against the fixed workflow.

Out of scope

  • Re-tagging v3.0.0 (handled by the operator or a follow-up PR after merge)
  • The actual npm publish to npm (SPEC-417, separate workflow)

Refs

… rename

PR #3 renamed the package from @opita/ocais to @opitacode/ocais, but
left the publish-guard workflow with the old hardcoded glob
'opita-ocais-*.tgz'. After npm pack now generates
'opitacode-ocais-3.0.0.tgz', the glob no longer matches and the CI
fails at the 'Verify dist/ in tarball' step with:
  ls: cannot access 'opita-ocais-*.tgz': No such file or directory

Update both globs (ls + artifact upload path) to the new package name.
Add a NOTE comment so the next person who renames the package knows
to update these globs too.

Caught by: tag v3.0.0 push triggered publish-guard (run 29974882481), failed at
'Verify dist/ in tarball'. Local 132/132 tests + npm pack --dry-run
confirm the new tarball is otherwise valid; only the glob is wrong.

Refs: PR #3, SPEC-417
@nicourrutia98
nicourrutia98 merged commit 7a1a546 into master Jul 23, 2026
1 check passed
@nicourrutia98
nicourrutia98 deleted the fix/publish-guard-glob-after-rename branch July 23, 2026 03:07
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