1.0.0 • Published 2 years ago

semantic-release-gitlab-publish v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

semantic-release-gitlab-publish

semantic-release shareable config to publish npm packages with Gitlab.

Publish

Plugins

This shareable configuration uses the following plugins:

Summary

Install

$ npm install --save-dev semantic-release semantic-release-gitlab-publish

Usage

The shareable config can be configured in the semantic-release configuration file:

{
  "extends": "semantic-release-gitlab-publish",
  "branch": "main",
  "preset": "angular"
}

Configuration

Ensure that your CI configuration has the following secret environment variables set:

  • GL_TOKEN with api and write_repository scopes as mention in the

See the documentation for required installation and configuration steps.

Gitlab CI configuration

Here is an example of what your gitlab-ci.yaml publish job should look like:

name: CICD

stages:
  - publish

.base:
  image: node:16
  
publish:
  stage: publish
  extends:
    - .base
  environment:
    name: PROD
  only:
    - main
  script:
    - npx semantic-release