diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8df70b1..5c3b0a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,11 @@ jobs: cache: true require-lockfile: true + - name: Verify npm CLI setup for trusted publishing + run: | + pnpm add --global npm@latest + npm --version + - name: Run tests run: pnpm run test diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1956933..368ce55 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,6 +25,11 @@ jobs: cache: true require-lockfile: true + - name: Install npm CLI for trusted publishing + run: | + pnpm add --global npm@latest + npm --version + - run: pnpm build - name: Release (master)