Commit 25e19908 authored by Federico Falconieri's avatar Federico Falconieri
Browse files

fix: removes plugins argument

reason: it will always override the user's semantic-release
configuration file.
If really necessary, the user will still be able to set
the --plugin argument through the EXTRA_ARGS variable
parent c991a5ff
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -10,12 +10,10 @@ semantic-release:
  image: registry.gitlab.com/notno/semantic-release-gitlab:latest
  stage: .post
  variables:
    PLUGINS: "@semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/git @semantic-release/gitlab"
    # See https://semantic-release.gitbook.io/semantic-release/usage/configuration
    EXTRA_ARGS: ""
  script:
    - npm install -g semantic-release @semantic-release/gitlab @semantic-release/git @semantic-release/changelog
    - semantic-release ${EXTRA_ARGS} --plugins $PLUGINS
    - semantic-release ${EXTRA_ARGS}
  rules:
    - if: $CI_COMMIT_TAG
      when: never