From 78f15b9bd5943403b24ebc5ef782ad282f94f892 Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Mon, 15 Apr 2024 10:26:15 +0800 Subject: [PATCH] fix: stop using fork version of changelogithub --- README.md | 3 +-- src/index.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 896a579..0d02095 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,8 @@ Run [release-it](https://github.com/release-it/release-it) with [pnpm](https://p 1. Bump all packages to the new version. 1. Run `pnpm -r publish --access public --no-git-checks` ([pnpm publish](https://pnpm.io/cli/publish)). 1. Appendix `--tag {tag}` if it's a pre-release. -1. Run `npx @hyoban/changelogithub` for GitHub release ([changelogithub](https://github.com/antfu/changelogithub)). +1. Run `npx changelogithub` for GitHub release ([changelogithub](https://github.com/antfu/changelogithub)). 1. You can disable it by setting `disableRelease` to `true` in `.release-it.json`. - 1. It's actually running [my forked version](https://github.com/antfu/changelogithub/compare/main...hyoban-fork:changelogithub:fix/parse-prerelease) of changelogithub, using `semver` to parse the version, without requiring a `v` prefix. ## Install diff --git a/src/index.js b/src/index.js index d17c23c..640fb5e 100644 --- a/src/index.js +++ b/src/index.js @@ -12,7 +12,7 @@ const prompts = { }, release: { type: 'confirm', - message: () => 'Are you sure you want to create a new release on GitHub? (npx @hyoban/changelogithub)', + message: () => 'Are you sure you want to create a new release on GitHub? (npx changelogithub)', }, } @@ -140,8 +140,8 @@ class ReleaseItPnpmPlugin extends Plugin { try { await this.step({ - task: () => this.exec('npx @hyoban/changelogithub'), - label: 'Creating release on GitHub (npx @hyoban/changelogithub)', + task: () => this.exec('npx changelogithub'), + label: 'Creating release on GitHub (npx changelogithub)', prompt: 'release', }) }