Skip to content

Fix npm trusted publishing - #520

Merged
kieran-osgood-shopify merged 1 commit into
mainfrom
kieran-osgood/cx-rn-v39-compat/dual-architecture
Aug 26, 2026
Merged

Fix npm trusted publishing#520
kieran-osgood-shopify merged 1 commit into
mainfrom
kieran-osgood/cx-rn-v39-compat/dual-architecture

Conversation

@kieran-osgood-shopify

@kieran-osgood-shopify kieran-osgood-shopify commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What changes are you making?

This works confirmed by workflow_dispatch: https://github.com/Shopify/checkout-sheet-kit-react-native/actions/runs/32992451044

Fix npm trusted publishing after the pnpm migration removed the global npm 11 installation.

The publish workflow now mirrors Shopify/checkout-kit by:

  • running the OIDC-compatible npm 11.5.1 CLI through pnpm dlx;
  • clearing both npm token environment variables so npm uses GitHub OIDC;
  • publishing signed provenance;
  • disabling lifecycle scripts and git checks in the privileged publish step.

This fixes the misleading E404 encountered while publishing 3.9.0.

How to test

Given @shopify/checkout-sheet-kit@3.9.0 is not yet published and npm trusted publishing is configured for this repository, when Publish NPM Package is manually dispatched against this branch, then the publish step should authenticate through OIDC, record signed provenance, and publish version 3.9.0 under the latest tag instead of failing with E404.


PR Checklist

@kieran-osgood-shopify
kieran-osgood-shopify requested a review from a team as a code owner August 26, 2026 17:08
Assisted-By: devx/414037a7-8b00-4d1b-b4ff-20c6919aa6df
@kieran-osgood-shopify
kieran-osgood-shopify force-pushed the kieran-osgood/cx-rn-v39-compat/dual-architecture branch from 27086a2 to 91da5a3 Compare August 26, 2026 17:13
@github-actions

Copy link
Copy Markdown

Coverage Report

Lines Statements Branches Functions
Coverage: 99%
99.12% (227/229) 94.61% (123/130) 100% (67/67)

@kieran-osgood-shopify
kieran-osgood-shopify merged commit 13dd6d5 into main Aug 26, 2026
8 checks passed

Copy link
Copy Markdown
Contributor Author

Merge activity

@kieran-osgood-shopify
kieran-osgood-shopify deleted the kieran-osgood/cx-rn-v39-compat/dual-architecture branch August 26, 2026 17:27
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