diff --git a/.github/actions/npm-publish/action.yml b/.github/actions/npm-publish/action.yml index 90f3fca20..364686902 100644 --- a/.github/actions/npm-publish/action.yml +++ b/.github/actions/npm-publish/action.yml @@ -21,6 +21,7 @@ runs: uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} + check-latest: true cache: 'npm' registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6c7ff9bd..4fda9464d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,10 +18,7 @@ jobs: release: uses: ./.github/workflows/npm-release.yml with: - # Pinned to 22.22.1 — 22.22.2 has a regression (nodejs/node#62425) where - # the bundled npm is missing promise-retry, breaking npm install -g npm@11. - # Revert to node-version: 22 once the upstream fix is released. - node-version: 22.22.1 + node-version: 22 require-build: true secrets: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 44e4ff770..da9c231ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,7 @@ jobs: uses: actions/setup-node@v7 with: node-version: 22 + check-latest: true cache: 'npm' - name: Install dependencies