diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 58c490cf8e..15abce0cf1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -51,11 +51,11 @@ jobs: icon-dist-${{ github.ref }}- # Only setup & build if there was no build cache hit - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 if: ${{ steps.build-cache.outputs.cache-hit != 'true' }} with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' @@ -99,10 +99,10 @@ jobs: with: version: 10.18.3 - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' @@ -139,10 +139,10 @@ jobs: with: version: 10.18.3 - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' @@ -188,10 +188,10 @@ jobs: with: version: 10.18.3 - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' @@ -235,10 +235,10 @@ jobs: with: version: 10.18.3 - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' diff --git a/.github/workflows/react17.yml b/.github/workflows/react17.yml index 2797b3e063..d316728e75 100644 --- a/.github/workflows/react17.yml +++ b/.github/workflows/react17.yml @@ -37,10 +37,10 @@ jobs: tools/*/dist/* key: ${{ runner.os }}-REACT17-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/') }} - - name: Setup Node 18 + - name: Setup Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - name: Install node-gyp run: pnpm add --global node-gyp @@ -92,10 +92,10 @@ jobs: tools/*/dist/* key: ${{needs.build.outputs.cache-primary-key}} - - name: Setup Node 18 + - name: Setup Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - name: Install node-gyp run: pnpm add --global node-gyp diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18fd89172a..83c208d0c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,10 @@ on: branches: - main +permissions: + id-token: write + contents: write + jobs: build: name: Build packages @@ -45,11 +49,11 @@ jobs: key: ${{ runner.os }}-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/') }} # Only setup & build if there was no build cache hit - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 if: ${{ steps.build-cache.outputs.cache-hit != 'true' }} with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' @@ -99,10 +103,10 @@ jobs: with: version: 10.18.3 - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' @@ -153,10 +157,10 @@ jobs: with: version: 10.18.3 - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' @@ -183,14 +187,6 @@ jobs: tools/*/stories.js key: ${{needs.build.outputs.cache-primary-key}} - - name: Updating .npmrc - run: | - cat << EOF > "$HOME/.npmrc" - //registry.npmjs.org/:_authToken=$NPM_TOKEN - EOF - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Version packages id: changesets uses: changesets/action@v1 @@ -200,13 +196,6 @@ jobs: createGithubReleases: true env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' - NPM_TOKEN: '${{ secrets.NPM_TOKEN }}' - - - name: Debug changesets output - run: | - echo "Changesets output: ${{ steps.changesets.outputs }}" - echo "Changesets output type: ${{ toJSON(steps.changesets.outputs) }}" - echo "--------------------------------" release-aws: name: Publish to AWS CodeArtifact @@ -221,10 +210,10 @@ jobs: with: version: 10.18.3 - - name: Use Node 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 cache: 'pnpm' cache-dependency-path: 'pnpm-lock.yaml' diff --git a/.github/workflows/sizeDiff.yml b/.github/workflows/sizeDiff.yml index 1e0a8722a8..f85e09f53e 100644 --- a/.github/workflows/sizeDiff.yml +++ b/.github/workflows/sizeDiff.yml @@ -16,10 +16,10 @@ jobs: with: version: 10.18.3 - - name: Use Node.js 18 + - name: Use Node 22 uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - uses: preactjs/compressed-size-action@v2 with: diff --git a/.tool-versions b/.tool-versions index dbb3005b7b..1b70e432fc 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1,2 @@ -nodejs 18.20.8 +nodejs 22.21.1 pnpm 10.18.3 diff --git a/package.json b/package.json index 2d4705d598..55beeb1352 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "private": true, "engines": { - "node": ">= 18.20.8", + "node": ">= 22.21.0", "pnpm": ">= 10.18.3" }, "packageManager": "pnpm@10.18.3",