From 72719d6f6549899300c385bfd5900b689a84f660 Mon Sep 17 00:00:00 2001 From: kac-axelor <215158475+kac-axelor@users.noreply.github.com> Date: Wed, 20 May 2026 16:31:48 +0530 Subject: [PATCH 1/2] Upgrade GitHub Actions, add composite setup action, replace deprecated create-release - actions/checkout: v3 -> v6 - actions/setup-node: v3 -> v6 (node 18 -> 22) - pnpm/action-setup: v3 -> v6 - docker/setup-docker-action: v4 -> v5 - Replace actions/create-release@v1 (deprecated) with softprops/action-gh-release@v3 - Extract pnpm/Node setup into .github/actions/setup composite action --- .github/actions/setup/action.yml | 14 ++++++ .github/workflows/gradle.yml | 74 +++++++++----------------------- 2 files changed, 34 insertions(+), 54 deletions(-) create mode 100644 .github/actions/setup/action.yml diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 0000000..94e4cb2 --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,14 @@ +name: 'Setup' +description: 'Setup pnpm, Node.js, and install dependencies' +runs: + using: 'composite' + steps: + - uses: pnpm/action-setup@v6 + - uses: actions/setup-node@v6 + with: + node-version: "22.x" + registry-url: "https://registry.npmjs.org" + cache: "pnpm" + - name: Install dependencies + shell: bash + run: pnpm install diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4a9b190..98ecaa5 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -13,15 +13,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: "18.x" - registry-url: "https://registry.npmjs.org" - - uses: pnpm/action-setup@v3 - with: - version: latest - - run: pnpm install + - uses: actions/checkout@v6 + - uses: ./.github/actions/setup - name: Build run: pnpm build @@ -29,15 +22,8 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: "18.x" - registry-url: "https://registry.npmjs.org" - - uses: pnpm/action-setup@v3 - with: - version: latest - - run: pnpm install + - uses: actions/checkout@v6 + - uses: ./.github/actions/setup - name: Run Tests run: pnpm test @@ -49,16 +35,9 @@ jobs: image: docker:dind options: --privileged steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: "18.x" - registry-url: "https://registry.npmjs.org" - - uses: pnpm/action-setup@v3 - with: - version: latest - - run: pnpm install - - uses: docker/setup-docker-action@v4 + - uses: actions/checkout@v6 + - uses: ./.github/actions/setup + - uses: docker/setup-docker-action@v5 - name: Run E2E Tests run: pnpm test:e2e @@ -68,17 +47,10 @@ jobs: name: Publish next release runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: actions/setup-node@v3 - with: - node-version: "18.x" - registry-url: "https://registry.npmjs.org" - - uses: pnpm/action-setup@v3 - with: - version: latest - - run: pnpm install + - uses: ./.github/actions/setup - name: Set next version with timestamp and commit SHA run: | BASE_VERSION=$(node -p "require('./package.json').version") @@ -99,27 +71,21 @@ jobs: if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') name: Release tag runs-on: ubuntu-22.04 + permissions: + contents: write steps: - - name: Create GitHub release - id: create-new-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: "18.x" - registry-url: "https://registry.npmjs.org" - - uses: pnpm/action-setup@v3 - with: - version: latest - - run: pnpm install + - uses: actions/checkout@v6 + - uses: ./.github/actions/setup - name: Build run: pnpm build - name: Publish packages with latest tag run: pnpm release --tag latest env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Create GitHub release + uses: softprops/action-gh-release@v3 + with: + tag_name: ${{ github.ref_name }} + name: Release ${{ github.ref_name }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 3f47f32e7874efc6659e7f5698a893254bfc09f3 Mon Sep 17 00:00:00 2001 From: kac-axelor <215158475+kac-axelor@users.noreply.github.com> Date: Wed, 20 May 2026 16:48:56 +0530 Subject: [PATCH 2/2] Bump engines.node to >=22.11.0 Align with CI (Node 22) and pin to first LTS release of the v22 line. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4aa40f4..2fa569d 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "vitest": "^4.0.2" }, "engines": { - "node": ">=18.18.0" + "node": ">=22.11.0" }, "packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8" }