Skip to content

Commit

Permalink
chore(changeset): add custom commit script
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjavi committed Aug 11, 2023
1 parent bb3d34a commit 2d993a8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .changeset/commits.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function getAddMessage() {
return `docs(changeset): add new entries`
}

function getVersionMessage(releasePlan) {
const releasePlanTxt = String(releasePlan)
const parts = releasePlanTxt.split('@')
const versionParts = parts[parts.length - 1].split('\n')
const version = versionParts[0] ?? 'new version'
return `chore: release v${version}`
}

module.exports = { getAddMessage, getVersionMessage }
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "itsjavi/storylite", "summary": "" }],
"commit": true,
"commit": "./commits.js",
"fixed": [],
"linked": [],
"access": "public",
Expand Down
5 changes: 0 additions & 5 deletions .changeset/kind-geckos-hide.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/storylite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @storylite/storylite

## 0.2.2

### Patch Changes

- [`bb3d34a`](https://github.com/itsjavi/storylite/commit/bb3d34a17d59af3890f785a4471202664bb85be2) Thanks [@itsjavi](https://github.com/itsjavi)! - minor changes

## 0.2.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/storylite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@storylite/storylite",
"version": "0.2.1",
"version": "0.2.2",
"description": "A lightweight alternative to StoryBook, built on top of Vite⚡️",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit 2d993a8

Please sign in to comment.