cd /news/developer-tools/postcss-adopted-staged-publishing-68… Β· home β€Ί topics β€Ί developer-tools β€Ί article
[ARTICLE Β· art-41899] src=dev.to β†— pub= topic=developer-tools verified=true sentiment=↑ positive

PostCSS Adopted Staged Publishing. 685M Weekly Downloads Now Gated.

PostCSS maintainer Andrey Sitnik adopted npm staged publishing for four of seven packages under the 'ai' npm account, gating 685 million weekly downloads behind human approval. The move, prompted by a GitHub issue filed on June 18, 2026, addresses supply chain risks exposed by recent attacks on TanStack and Red Hat where CI-based publishing was compromised. Staged publishing splits the build and publish steps, requiring manual approval before a package moves to the 'latest' tag.

read2 min views1 publishedJun 27, 2026

On June 18, 2026, I filed postcss/postcss#2096 about OIDC provenance for PostCSS. The ai

npm account β€” one person, Andrey Sitnik β€” publishes PostCSS, nanoid, Autoprefixer, browserslist, and caniuse-lite. Combined: over 900 million weekly downloads through a single publish credential.

Andrey's first reply was not agreement. It was a correction.

From his comment:

Provenance wouldn't save from all of that supply chain attack. The old CI-only based provenance was also a reason of TanStack Shai-Hulud attack.

CI-as-publisher

increasedthe attack risks compared to 2FA manual publishing. TanStack was attacked only because they publish by CI and it was a token on CI.

He is right. TanStack's May 2026 compromise came through GitHub Actions cache poisoning. The attacker got an OIDC token from the CI runner and used it to publish. The provenance attestation was valid β€” the package was built by TanStack's CI pipeline. The CI pipeline was just also running the attacker's code.

Red Hat's June 1 compromise proved the same pattern. Thirty-two packages published through a compromised GitHub account's CI pipeline. All 32 had valid SLSA provenance attestations.

Andrey's argument: if you publish manually with hardware-bound 2FA (passkey, YubiKey), the attacker needs physical access to your device. If you publish through CI, the attacker needs a GitHub token β€” a much larger attack surface.

npm's Staged Publishing splits the problem: CI builds and stages. A human approves before latest

moves. A stolen CI token stages a malicious version but never promotes it.

From Andrey's follow-up:

I already moved

nanoid

andnanospy

to the new process, we can test them.PostCSS will be done in a week or two (too many other open source projects) πŸ˜…

nanoid's release.yml, updated June 18:

- name: Publish npm package
  run: npm stage publish

Andrey said "a week or two." It took nine days. As of June 27, four of the seven packages under the ai

npm account have Staged Publishing enabled:

Package Weekly downloads Staged Publishing Score
postcss 251M βœ… 85
nanoid 207M βœ… 92
browserslist 166M βœ… 89
autoprefixer 61M βœ… 89
caniuse-lite 171M β€” 81
postcss-nested 54M β€” 72
postcss-js 53M β€” 70

That's 685 million weekly downloads now behind a human approval gate. One GitHub issue, nine days, no drama.

Three more packages remain. When caniuse-lite, postcss-nested, and postcss-js adopt, the entire PostCSS ecosystem β€” 963 million weekly downloads β€” will be gated.

npx proof-of-commitment

Scans your lockfile. Flags single-publisher packages at scale. Shows provenance, Staged Publishing, and dormant access status. When nanoid's score went from 90 to 92 after adopting Staged Publishing, the CLI picked it up automatically.

The full PostCSS ecosystem audit data comes from Commit, which scores packages on behavioral signals rather than declared metadata.

── more in #developer-tools 4 stories Β· sorted by recency
── more on @postcss 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/postcss-adopted-stag…] indexed:0 read:2min 2026-06-27 Β· β€”