Skip to content

fix(ci): restore publishing for @contentful packages []#10709

Merged
Jared Jolton (jjolton-contentful) merged 1 commit intomasterfrom
fix/dam-app-base-ci
Mar 20, 2026
Merged

fix(ci): restore publishing for @contentful packages []#10709
Jared Jolton (jjolton-contentful) merged 1 commit intomasterfrom
fix/dam-app-base-ci

Conversation

@jjolton-contentful
Copy link
Contributor

@jjolton-contentful Jared Jolton (jjolton-contentful) commented Mar 18, 2026

Purpose

CI publish to GitHub Packages was silently failing because the project .npmrc (with @contentful:registry=https://registry.npmjs.org) overrides the CI-configured ~/.npmrc scope, causing lerna publish to target the wrong registry without auth.

These packages are intended to be published to Contentful's internal GitHub Packages registry, where they are then mirrored to the public NPM registry.

Approach

  • Restore removal of project .npmrc during publish step (was in 4d728ad, mistakenly removed in b8576a9)
  • Remove silent error suppression on lerna publish from-git so publish failures are visible in CI
  • Add publishConfig to all publishable packages as defense-in-depth

Testing steps

  • Ensure new package versions are published successfully

Breaking Changes

No

Dependencies and/or References

Deployment

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Restores the monorepo’s CI package publishing flow so @contentful/* packages are published to Contentful’s GitHub Packages registry (instead of being redirected to npmjs by the repo-level .npmrc), and ensures publish failures are surfaced in CI.

Changes:

  • Remove the repo .npmrc during the CI publish step so CI’s ~/.npmrc registry/auth settings take effect.
  • Make lerna publish from-git failures fail CI (remove silent error suppression).
  • Add publishConfig.registry (and access) to publishable packages as a defense-in-depth registry override.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.circleci/config.yml Deletes repo .npmrc during publish setup to avoid overriding CI’s GitHub Packages config.
package.json Updates publish-packages script to stop masking publish failures.
packages/dam-app-base/package.json Adds publishConfig to force publishing to GitHub Packages.
packages/ecommerce-app-base/package.json Adds publishConfig to force publishing to GitHub Packages.
packages/eslint-plugin-contentful-apps/package.json Adds publishConfig to force publishing to GitHub Packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

CI publish to GitHub Packages was silently failing because the project
.npmrc (with @contentful:registry=https://registry.npmjs.org) overrides
the CI-configured ~/.npmrc scope, causing lerna publish to target the
wrong registry without auth.

- Restore removal of project .npmrc during publish step (was in
  4d728ad, mistakenly removed in b8576a9)
- Remove silent error suppression on lerna publish from-git so
  publish failures are visible in CI
- Add publishConfig to all publishable packages as defense-in-depth

Made-with: Cursor
Copy link
Contributor

@ryunsong-contentful ryunsong-contentful left a comment

Choose a reason for hiding this comment

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

🚢

@jjolton-contentful Jared Jolton (jjolton-contentful) merged commit 46e2959 into master Mar 20, 2026
14 checks passed
@jjolton-contentful Jared Jolton (jjolton-contentful) deleted the fix/dam-app-base-ci branch March 20, 2026 15:15
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.

3 participants