🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@wroud/ci

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wroud/ci

A small CLI for automating releases based on conventional commits. It bumps versions, updates your changelog and publishes GitHub releases.

Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@wroud/ci

ESM-only package NPM version

A small CLI for automating releases based on conventional commits. It bumps versions, updates your changelog and publishes GitHub releases.

Note: This tool works with Yarn, npm and pnpm.

Installation

Install via npm:

npm install @wroud/ci

Install via yarn

yarn add @wroud/ci

Documentation

For detailed usage and API reference, visit the documentation site.

Configuration

Create an optional wroud.ci.config.js in the project root:

export default {
  repository: "owner/repo",
  tagPrefix: "v",
};

repository is used to generate links in the changelog. If omitted, GITHUB_REPOSITORY or the repository.url field from package.json is used. tagPrefix sets the prefix for git tags. It can also be provided via the TAG_PREFIX environment variable or the tagPrefix field in package.json.

Commands

release [path]

Bump version and update changelog.

  • --prefix tag prefix (defaults to configured prefix)
  • --change-log-file path to changelog file
  • --dry-run preview actions without writing files

git-tag

Create git tag for current version.

  • --prefix tag prefix (defaults to configured prefix)
  • --dry-run preview actions

release-github

Publish GitHub releases for new tags.

  • --prefix tag prefix (defaults to configured prefix)
  • --dry-run preview actions

Single Package Repository

Add scripts to your package.json:

{
  "scripts": {
    "ci:release": "ci release",
    "ci:git-tag": "ci git-tag",
    "ci:release-github": "ci release-github"
  }
}

Workspace with Multiple Packages

Run the commands for each package using yarn workspaces foreach:

yarn workspaces foreach -A --topological-dev run ci:release

Example Workflow

name: Release
on:
  push:
    tags:
      - 'v*'
jobs:
  release:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4
      - run: corepack enable
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: 'yarn'
      - run: yarn install --immutable
      - run: yarn build
      - run: npx @wroud/ci release-github
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Changelog

All notable changes to this project will be documented in the CHANGELOG file.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

ci

FAQs

Package last updated on 21 May 2025

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