Skip to content

ci: remove explicit 'latest' versions and unnecessary env vars in wor… - #67

Merged
hzhangxyz merged 1 commit into
mainfrom
cleanup-workflow-versions
Jan 28, 2026
Merged

ci: remove explicit 'latest' versions and unnecessary env vars in wor…#67
hzhangxyz merged 1 commit into
mainfrom
cleanup-workflow-versions

Conversation

@hzhangxyz

Copy link
Copy Markdown
Member

…kflows

Copilot AI review requested due to automatic review settings January 28, 2026 03:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR simplifies CI workflows by removing unused configuration and explicit 'latest' version pins in GitHub Actions. The goal is to reduce unnecessary env vars and avoid non-deterministic version configuration in the pipelines.

Changes:

  • Removed the unused PYTHON_LATEST_VERSION environment variable from the pytest workflow.
  • Dropped explicit node-version: 'latest' from the npm publish workflow’s actions/setup-node step.
  • Dropped explicit node-version: 'latest' from the docs build workflow’s actions/setup-node step.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/pytest.yml Cleans up an unused global env var; Python versions are still controlled via the matrix.
.github/workflows/npm.yml Removes node-version: 'latest' from actions/setup-node, but currently leaves the step without any Node version configured, which will break the workflow.
.github/workflows/docs.yml Removes node-version: 'latest' from actions/setup-node, but similarly leaves the step without a configured Node version, which will break the workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/npm.yml
@@ -25,7 +25,6 @@ jobs:

- uses: actions/setup-node@v6
with:

Copilot AI Jan 28, 2026

Copy link

Choose a reason for hiding this comment

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

Removing the node-version: 'latest' line here leaves actions/setup-node@v6 without any node-version or node-version-file input, which will cause the action to fail with "Input required and not supplied: node-version" at runtime. To keep the workflow working while avoiding latest, configure a specific Node version (e.g., an LTS range like 22.x) or point node-version-file at your .nvmrc/.node-version file instead of removing the version entirely.

Suggested change
with:
with:
node-version: '22.x'

Copilot uses AI. Check for mistakes.
@@ -20,7 +20,6 @@ jobs:

- uses: actions/setup-node@v6
with:

Copilot AI Jan 28, 2026

Copy link

Choose a reason for hiding this comment

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

By removing node-version: 'latest' here, this actions/setup-node@v6 step no longer supplies a node-version or node-version-file, so the action will fail with a missing required input. To keep builds deterministic and functional, specify a pinned Node version (for example an LTS range like 22.x) or use node-version-file referencing your repo's Node version file instead of omitting the version entirely.

Suggested change
with:
with:
node-version: '22.x'

Copilot uses AI. Check for mistakes.
@hzhangxyz
hzhangxyz merged commit 238981b into main Jan 28, 2026
26 checks passed
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.

2 participants