0.1.6 • Published 1 year ago

@demartini/semantic-release-config v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@demartini/semantic-release-config

npm package license MIT Demartini’s Code Style

Demartini’s shareable configuration for semantic-release.

Table of Contents

Plugins

This shareable configuration use the following plugins:

Installation

Install this config as a devDependencies:

# npm
npm install @demartini/semantic-release-config --save-dev

# Yarn
yarn add @demartini/semantic-release-config --dev

After installing it, a .releaserc.json file will be created automatically in the project's root folder with the following configuration:

{
  "extends": ["@demartini/semantic-release-config"]
}

Configuration

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

See each plugin documentation for required installation and configuration steps.

GitHub Actions

name: Release

on:
  push:
    branches:
      - main

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4
        with:
          fetch-depth: 0

      - name: Setup Node.js Environment
        uses: actions/setup-node@v2.1.5
        with:
          always-auth: true
          node-version: 14
          registry-url: "https://registry.npmjs.org"

      - name: Install Dependencies with Caching
        uses: bahmutov/npm-install@v1.6.0

      - name: Release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
        run: yarn run semantic-release

Documentations

Read the semantic-release docs for more information.

Contributing

If you are interested in helping contribute, please take a look at our contribution guidelines and open an issue or pull request.

Changelog

See CHANGELOG for a human-readable history of changes.

License

Distributed under the MIT License. See LICENSE for more information.