Troubleshooting
Troubleshooting
NPM registry
Если npm publish возвращает 403
Скорее всего дублируется scope
в каком-то .npmrc
Если npm publish возвращает 400
Возможно, пакет с таким названием уже был запаблишен в другом репозитории
Extend rules
So I've found a very hacky https://docs.gitlab.com/ee/ci/yaml/yaml_optimization.html > reference-tags way of doing this. It is not ideal but at least I could get what I wanted working.
Warning: This is only available starting on GitLab 14.3, which as of Sep/21 is in a pre-release state.
I prepare a set of just the texts of the rules and inject them in a real rule if
using https://docs.gitlab.com/ee/ci/yaml/ > reference-tags.
.rules_base:
rules:
RULE_A: "$CI_COMMIT_TAG"
RULE_B: "$CI_MERGE_REQUEST_IID"
job_a:
rules:
- if: !reference [.rules_base, rules, RULE_A]
- if: '$CI_PIPELINE_SOURCE == "web"'
job_b:
rules:
- if: !reference [.rules_base, rules, RULE_B]
This actually works and I can reuse the same rules on different jobs while also including new rules, if necessary.