Skip to content
Snippets Groups Projects
Verified Commit 678e8b7b authored by ornanovitch's avatar ornanovitch
Browse files

chore(ci): prepare needs to be a MR pipeline

parent b6db8b8b
No related branches found
No related tags found
3 merge requests!86Draft: Resolve "next release",!85Draft: Resolve "next release",!84chore: release protocol
Pipeline #31494 passed
......@@ -24,7 +24,7 @@ test:
expire_in: 1 week
prepare:
stage: test
stage: publish
image: node:alpine
before_script:
- apk add --no-cache git openssh openssl curl
......@@ -42,11 +42,11 @@ prepare:
- export GITLAB_TOKEN=$CI_JOB_TOKEN
- npx release-it --ci --no-npm --gitlab.release --dry-run
- >-
curl --verbose
curl
--header "PRIVATE-TOKEN: ${RELEASE_IT_TOKEN}"
--request PUT "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}?target_branch=main"
rules:
- if: $CI_COMMIT_BRANCH =~ /^[0-9]+-next-release/
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_COMMIT_BRANCH =~ /^[0-9]+-next-release/
needs: ["test"]
release:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment