豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

actions/setup-node modifies pnpm-lock.yaml. #1527

@kristof-mattei

Description

@kristof-mattei

Description:
A clear and concise description of what the bug is.

Action version:
53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

    "node": "24.14.1",
    "pnpm": "10.33.0"

Repro steps:
Clone https://github.com/kristof-mattei/pnpm-test/

Locally, do pnpm install, and observe no changes with git diff.

Create new, empty PR, and observe the actions/setup-node action does something that modifies the pnpm-lock.yaml file.

https://github.com/kristof-mattei/pnpm-test/actions/runs/24292198765/job/70931299723?pr=4

Expected behavior:

No modifications to the pnpm-lock.yaml.

Actual behavior:

pnpm-lock.yaml is modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions