From 59e144fdbbbe5884ea081342d14532cc1c780488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Sun, 19 Oct 2025 15:07:31 +0800 Subject: [PATCH] ci: trusted publishing fixes https://github.com/eslint-community/eslint-plugin-eslint-comments/issues/261 --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40be76a..c735d12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,7 +112,11 @@ jobs: - name: ⎔ Setup node uses: actions/setup-node@v4 with: - node-version: 18 + node-version: lts/* + + # npm 11.5.1 or later is required so update to latest to be sure + - name: Update npm + run: npm install -g npm@latest - name: 📥 Install dependencies run: npm install --legacy-peer-deps @@ -133,4 +137,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_CONFIG_PROVENANCE: true - NPM_TOKEN: ${{ secrets.NPM_TOKEN }}