我已经设置了变量,但它似乎不起作用。
语义日志显示它正在使用@semantic-release/github,但实际上我的仓库在gitlab中,是这个原因吗?顺便说一句,我已经安装了@semantic-release/gitlab puglin
[semantic-release] › ℹ 插件“@semantic-release/github”的启动步骤“verifyConditions”
其他设置在这里:
//.npmrc:
registry=https://registry.npmjs.org/
//gitlab.com/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}
//gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}
releaserc.json:
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/gitlab",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}