diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ce7fde8..3ef0ed82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,7 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} permissions: + id-token: write contents: write jobs: @@ -27,9 +28,9 @@ jobs: version: 9.5 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: - node-version: "20.x" + node-version: "22.x" registry-url: "https://registry.npmjs.org" cache: pnpm cache-dependency-path: pnpm-lock.yaml @@ -69,9 +70,9 @@ jobs: version: 9.5 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v6 with: - node-version: "20.x" + node-version: "22.x" registry-url: "https://registry.npmjs.org" cache: pnpm cache-dependency-path: pnpm-lock.yaml @@ -284,10 +285,11 @@ jobs: with: version: 9.5 - - name: Setup Node.js 20 - uses: actions/setup-node@v3 + - name: Setup Node.js 22 + uses: actions/setup-node@v6 with: - node-version: "20.x" + node-version: "22.x" + registry-url: 'https://registry.npmjs.org' cache: pnpm - name: Configure pnpm @@ -295,6 +297,11 @@ jobs: pnpm config set auto-install-peers true pnpm config set exclude-links-from-lockfile true + - name: Update npm + run: | + npm install -g npm@^11.6 + npm --version + - name: Install dependencies run: pnpm install --frozen-lockfile @@ -322,7 +329,7 @@ jobs: createGithubReleases: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: "" # See https://github.com/changesets/changesets/issues/1152#issuecomment-3190884868 PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} - name: Update lock file