Skip to content

chore: fix release workflow and npmignore for monorepo - #25

Open
losolio wants to merge 1 commit into
mainfrom
chore/fix-release-workflow-for-monorepo
Open

losolio wants to merge 1 commit into
mainfrom
chore/fix-release-workflow-for-monorepo

Conversation

@losolio

@losolio losolio commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Adjusts the release pipeline after the monorepo restructure.

  • .npmignore: moved from repo root to packages/scribo/ — the root copy was never applied when publishing from the package subdirectory. The new file excludes demo app files (App.tsx, index.tsx, public/), test files, and build tooling configs (vite.config.*, tsconfig.node.json).
  • scribo-release.yml: update action versions to match ci.yml (checkout@v7, pnpm/action-setup@v6, setup-node@v7) and switch pnpm publish to pnpm publish -r so changesets publishes through the workspace rather than from the root.

Validation

  • npm pack --dry-run from packages/scribo confirms demo files are excluded and all published exports (src/main.tsx, dist/main.d.ts, dist/scribo.css, schedule/callout entries) are present.

Copilot AI lite review requested due to automatic review settings September 15, 2026 21:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The release workflow likely cannot run pnpm changeset ... from the repo root because Changesets tooling is only declared in the package subdirectory, which can break publishing.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adjusts Scribo’s release/publishing setup to align with the monorepo layout so the npm tarball contents and release workflow behave correctly when publishing from a workspace.

Changes:

  • Add packages/scribo/.npmignore to exclude demo entrypoints/assets, tests, and build-tooling files from the published package.
  • Remove the unused root .npmignore that wouldn’t apply when publishing from the package subdirectory.
  • Update .github/workflows/scribo-release.yml action versions and switch the publish command to a recursive workspace publish (pnpm publish -r).
File summaries
File Description
packages/scribo/.npmignore Introduces package-scoped ignore rules to control published tarball contents in the monorepo.
.npmignore Removes the root ignore file that wouldn’t affect package publishing in the new structure.
.github/workflows/scribo-release.yml Updates release workflow action versions and adjusts publish to run through the workspace.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 49 to +51
title: "chore: version packages"
version: pnpm changeset version
publish: pnpm publish --access public --provenance
publish: pnpm publish -r --access public --provenance
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.

2 participants