New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@owngames/semantic

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

@owngames/semantic

Semantic Versioning, Conventional Commits with CI/CD for GitHub Actions.

latest
Source
npmnpm
Version
0.0.1--canary.51.2893023504.0
Version published
Maintainers
1
Created
Source

@owngames/semantic

Overview

Installation

yarn add @owngames/semantic --dev

This extends @owngames/git-cz.

Semantic Release

./release.config.cjs

Custom values:

  • enableGit?: boolean
  • enableGithub?: boolean
  • enableNpm?: boolean
  • enableReleaseNotes?: boolean
  • enableReleaseNotesCustom?: boolean

And then the rest of the traditional configuration values for semantic-release and conventional-changelog.

Example

You can look at this monorepo as it re-uses a lot of code ethroughout via release.config

const { getConfig } = require('@owngames/semantic')

const { name } = require('./package.json')

const configPassed = {
  tagFormat: `${name}@\${version}`,
}

const config = getConfig(configPassed)

module.exports = config

Scripts

Branch Names

Add a script in package.json:

  "scripts": {
    "branch": "git-cz --branch --allow-empty"
  }

Running yarn branch will then trigger the CLI to create branch for you based on

CI/CD

Add a script in package.json as this extends semantic-release:

  "scripts": {
    "semantic-release": "semantic-release",
"release": "auto shipit"

  }

Be sure to allow for Git + GitHub access so semantic-release can create commits and more actions on your repo.

Configured in this repo via ./github/workflows/semantic-release.yml.

FAQs

Package last updated on 20 Aug 2022

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