From df4bbc9fe0c9293d425d4a837057787a7616a5d8 Mon Sep 17 00:00:00 2001 From: Rafael Cardenas Date: Sun, 21 Dec 2025 19:36:27 -0600 Subject: [PATCH] ci: upgrade npm for trusted publishing --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a9749b..321fa97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,8 +136,12 @@ jobs: - uses: actions/setup-node@v6 with: - node-version-file: '.nvmrc' - registry-url: 'https://registry.npmjs.org' + node-version-file: .nvmrc + + - name: Upgrade to latest npm + run: | + npm install -g npm@latest + npm -v - name: Install deps run: npm ci --audit=false @@ -151,7 +155,6 @@ jobs: if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository env: GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }} GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com" GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"