@owngames/semantic
TypeScript icon, indicating that this package has built-in type declarations

0.0.1--canary.51.2893023504.0 • Public • Published

@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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.1--canary.c4d9dc1.00canary
0.0.1--canary.51.2893023504.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.1--canary.c4d9dc1.00
0.0.1--canary.51.2893023504.01

Package Sidebar

Install

npm i @owngames/semantic

Weekly Downloads

1

Version

0.0.1--canary.51.2893023504.0

License

MIT

Unpacked Size

13.3 kB

Total Files

21

Last publish

Collaborators

  • ygorneves