diff --git a/.github/workflows/on-release-created.yml b/.github/workflows/on-release-created.yml index 7d19678574..4e7ff2c3c4 100644 --- a/.github/workflows/on-release-created.yml +++ b/.github/workflows/on-release-created.yml @@ -28,6 +28,9 @@ jobs: cache: 'pnpm' # see https://docs.github.com/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry registry-url: 'https://registry.npmjs.org' + # Ensure npm 11.5.1 or later is installed + - name: Update npm + run: npm install -g npm@latest - name: Publish package run: | pnpm i --frozen-lockfile