From 0fb5e8ffcf1b35bf817916af03f973c43087ca5a Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 17 Sep 2025 14:50:04 +0200 Subject: [PATCH] ci: fix npm version in publish --- .github/workflows/publish-to-npm-on-tag.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-to-npm-on-tag.yml b/.github/workflows/publish-to-npm-on-tag.yml index 92229c2a..8f40c2f6 100644 --- a/.github/workflows/publish-to-npm-on-tag.yml +++ b/.github/workflows/publish-to-npm-on-tag.yml @@ -12,9 +12,6 @@ permissions: jobs: publish: runs-on: ubuntu-latest - permissions: - contents: read - id-token: write steps: - name: Check out repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 @@ -26,6 +23,11 @@ jobs: with: cache: npm node-version-file: '.nvmrc' + 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: Install dependencies run: npm ci