Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pre-release-test

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pre-release-test

A project that uses semantic-release to automate the publishing of NPM packages to GitLab's Package Registry

  • 1.0.1-alpha.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

semantic-release-npm

Semantic Release Badge GitLab Pipeline Status

An example project that uses semantic-release to automate the publishing of NPM packages to GitLab's Package Registry.

See the auto-generated releases on the Releases page and the auto-published NPM packages on the Packages page.

A step-by-step guide can be found in GitLab's CI/CD examples documentation.

Environment variables

As part of publishing a package, semantic-release bumps the version in package.json. To allow it to commit this change and push it back to GitLab, the pipeline requires a custom environment variable named GITLAB_TOKEN, a project access token with api scope. This token can be generated by navigating to Project > Settings > Access Tokens. Be sure to mask this variable (otherwise it may be printed in plaintext in the job output).

Consuming the example module

To use this example module in another project, add the following to the project's .npmrc:

@gitlab-examples:registry=https://gitlab.com/api/v4/packages/npm/

Or, if using Yarn, add this to the project's .yarnrc

"@gitlab-examples:registry" "https://gitlab.com/api/v4/packages/npm/"

Then, install the package:

npm install --save @gitlab-examples/semantic-release-npm

or:

yarn add @gitlab-examples/semantic-release-npm

Keywords

FAQs

Package last updated on 07 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc