From c738e3b98bcb73e3b72c07b71c4cc7dfda8cef0e Mon Sep 17 00:00:00 2001 From: Travis Vachon Date: Thu, 23 Oct 2025 16:21:33 -0700 Subject: [PATCH] fix: ensure a modern-enough npm is installed for npmjs.com trusted publishing per https://github.com/nodejs/nodejs.org/pull/8091 we need to do a little extra work to make sure npm is new enough, since pnpm uses it behind the scenes to publish to the npm repository also tweak the README to get a test release of core --- .github/workflows/release.yml | 5 +++++ packages/core/README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a06ebc9c..7af0ec06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,6 +39,11 @@ jobs: - name: Install uses: pnpm/action-setup@v4 + + - name: Ensure NPM Version for OIDC + # NPM OIDC Trusted Publishing requires npm >=11.5.1. + # See https://github.com/nodejs/nodejs.org/pull/8091 + run: npm install -g npm@11 - name: Setup uses: actions/setup-node@v4 diff --git a/packages/core/README.md b/packages/core/README.md index bbf5b808..ad327e0c 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -31,4 +31,4 @@ const AddFile = capability({ }); ``` -For more details, see the [`ucanto` documentation](https://github.com/storacha/ucanto). +For more details, see the [`ucanto` documentation](https://github.com/storacha/ucanto). \ No newline at end of file