semantic-release-gitlab-publish

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i semantic-release-gitlab-publish

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

6.31 kB

Total Files

4

Last publish

Collaborators

  • ftavilla