Commit 2ae12b2c authored by Nejc Habjan's avatar Nejc Habjan Committed by Michael Kriese
Browse files

feat(ci): auto-release master commits with semver

parent c043320f
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
include: '/templates/renovate-dind.gitlab-ci.yml'

stages:
  - test
  - deploy
  - release

renovate:dry-run:
  only:
@@ -8,3 +12,13 @@ renovate:dry-run:
    - schedules
  script:
    - renovate --dry-run=true $RENOVATE_EXTRA_FLAGS

release:
  image: renovate/node:14.16.1
  stage: release
  before_script:
    - npm ci
  script:
    - npx --no-install semantic-release
  only:
    - master

.releaserc.json

0 → 100644
+7 −0
Original line number Diff line number Diff line
{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/gitlab"
  ]
}
+12 −0
Original line number Diff line number Diff line
@@ -61,6 +61,18 @@ include:
    file: '/templates/renovate.gitlab-ci.yml'
```

To prevent unexpected changes in your pipeline, you can pin the version of this template and include it in your renovate updates:

```yaml
include:
  - project: 'renovate-bot/renovate-runner'
    file: '/templates/renovate.gitlab-ci.yml'
    ref: v1.0.0
```

Please check this project's [Releases page](https://gitlab.com/renovate-bot/renovate-runner/-/releases)
to find the latest release tags to reference.

By default our pipeline only runs on schedules.
If you want it to run on other events checkout [here](https://docs.gitlab.com/ee/ci/yaml/README.html#onlyexcept-basic).

package-lock.json

0 → 100644
+5206 −0

File added.

Preview size limit exceeded, changes collapsed.

package.json

0 → 100644
+6 −0
Original line number Diff line number Diff line
{
  "devDependencies": {
    "semantic-release": "17.4.2",
    "@semantic-release/gitlab": "6.0.9"
  }
}
Loading