Skip to content

Upgrade GitHub Actions to v5#102

Merged
mahata merged 2 commits intomainfrom
refactor/node-version
Mar 13, 2026
Merged

Upgrade GitHub Actions to v5#102
mahata merged 2 commits intomainfrom
refactor/node-version

Conversation

@mahata
Copy link
Copy Markdown
Owner

@mahata mahata commented Mar 13, 2026

Upgrade the GitHub Actions used in the workflow to version 5 for improved performance and features. This includes updating the checkout, setup-node, and upload-artifact actions. Additionally, enable corepack for better package management.

Copilot AI review requested due to automatic review settings March 13, 2026 06:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates GitHub Actions workflow dependencies to newer major versions and adjusts CI setup to use Corepack for pnpm management.

Changes:

  • Bump actions/checkout, actions/setup-node, and actions/upload-artifact to @v5.
  • Remove pnpm/action-setup usage in CI and add a corepack enable step before running pnpm commands.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/copilot-setup-steps.yml Upgrades actions/checkout to @v5.
.github/workflows/ci.yml Upgrades key actions to @v5 and switches pnpm setup to Corepack.
Comments suppressed due to low confidence (1)

.github/workflows/ci.yml:70

  • Same issue as in the test job: setup-node is asked to cache pnpm deps before pnpm is made available (corepack is enabled only afterwards). This can break the job or prevent caching. Install/activate pnpm before actions/setup-node caching, or disable cache: "pnpm" and cache pnpm’s store later once corepack is enabled.
      - name: Setup Node.js
        uses: actions/setup-node@v5
        with:
          node-version-file: ".node-version"
          cache: "pnpm"
          cache-dependency-path: "pnpm-lock.yaml"

      - name: Enable corepack
        run: corepack enable


You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/ci.yml Outdated
* Initial plan

* fix: move corepack enable before setup-node in CI workflow

Co-authored-by: mahata <23497+mahata@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mahata <23497+mahata@users.noreply.github.com>
@mahata mahata merged commit 58f286a into main Mar 13, 2026
3 checks passed
@mahata mahata deleted the refactor/node-version branch March 13, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants