该插件可以通过制定 node 版本来运行你的构建脚本。
该插件通过在 entrypoint.sh 来动态安装指定版本的 node, 同时运行你的构建脚本。
- stages:
- name: 测试多版本的 node
jobs:
- name: node 18
image: docker.cnb.cool/looc/nvm-plugin:latest
settings:
node_version: 18 # 指定 node 版本
script: build.sh # 制定你的构建脚本
- name: node 19
image: docker.cnb.cool/looc/nvm-plugin:latest
settings:
node_version: 19
script: build.sh