Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Pin NPM version installed by CI pipelines

未关闭
#6 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
github-actions, node.js, shell
领域
ci-cd

调研方向

检查所列仓库中的 GitHub Actions CI 流水线定义,从 npm install --global npm 步骤和每个 Node.js 测试矩阵条目开始。将它们与所述的 NPM 版本策略进行比较,并确认所列仓库已完成更新;清单和链接的 PR 表明这项工作已经完成。

由索引模型根据 Issue 内容生成。

描述

When LoopBack's CI pipelines started incorporating GitHub Actions, npm install --global npm was added as a step performed before installation. This was to prevent an issue where, under certain circumstances, the Mocha tests would silently pass without even executing the tests themselves. However, a side-effect was that this would install the latest NPM version. This meant that CI pipelines which still tested against Node.js v10 broke due to incompatibility with the newly-relesaed NPM v8.

The NPM version policy is as follows:

  1. Use the latest supported NPM version for that specific Node.js version.
  2. Where there may be a gap between NPM major versions in the test matrix, add an additional x86 Linux test matrix permutation on GitHub Actions.

This issue is to track the updating of CI pipelines to use pinned NPM major versions.

Repos to update:

主要语言
Shell
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

loopbackio/cicd 的其他 Issue

查看 loopbackio/cicd 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。