Skip to content

Commit

Permalink
feat: add release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Dec 23, 2021
1 parent 952d2f1 commit fc8af9b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
stages:
- analyze
- release

analyze:sonar:
stage: analyze
Expand All @@ -20,3 +21,23 @@ analyze:sonar:
- main
tags:
- nginx-proxy-sonar

.release:
stage: release
only:
- main
variables:
GITLAB_AUTH_TOKEN: $CI_JOB_TOKEN
tags:
- gits-dev-mars
when: manual

release:patch:
extends: .release
script:
- npm run release -- --release-as patch

release:minor:
extends: .release
script:
- npm run release -- --release-as minor

0 comments on commit fc8af9b

Please sign in to comment.