Skip to content

Commit

Permalink
feat: add changelog & release script
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Jun 11, 2021
1 parent 07fd311 commit f2ac31d
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 217 deletions.
15 changes: 1 addition & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## 0.1.2 (2021-06-09)
## [0.1.2](https://github.com/hannoeru/eslint-config/compare/2438c6b929d0a99579d090e61abf95d061a9f091...v0.1.2) (2021-06-09)


### Bug Fixes
Expand Down Expand Up @@ -83,11 +78,3 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline





## [0.1.1](https://github.com/hannoeru/eslint-config/compare/v0.6.5...v0.1.1) (2021-06-08)


### Bug Fixes

* workspace pkg version ([7dfa428](https://github.com/hannoeru/eslint-config/commit/7dfa4289707d0dbf54b8fce7f38068a6b2a82d0e))
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"preinstall": "npx only-allow pnpm",
"lint": "npx eslint --ext .js,.json,.vue --fix .",
"release": "pnpm -r publish",
"release": "zx scripts/release.mjs",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
},
"devDependencies": {
Expand Down
27 changes: 0 additions & 27 deletions packages/all/CHANGELOG.md

This file was deleted.

29 changes: 0 additions & 29 deletions packages/basic/CHANGELOG.md

This file was deleted.

29 changes: 0 additions & 29 deletions packages/react/CHANGELOG.md

This file was deleted.

66 changes: 0 additions & 66 deletions packages/typescript/CHANGELOG.md

This file was deleted.

51 changes: 0 additions & 51 deletions packages/vue/CHANGELOG.md

This file was deleted.

18 changes: 18 additions & 0 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import { execSync } from 'child_process'
import fs from 'fs-extra'
import { $ } from 'zx'

execSync('npx bumpp package.json packages/*/package.json', { stdio: 'inherit' })

await $`pnpm changelog`

// await $`pnpm -r publish --access public --no-git-checks`

const { version } = await fs.readJSON('package.json')

// await $`git add .`
// await $`git commit -m "chore: release v${version}"`
// await $`git tag v${version}`
// await $`git push`
// await $`git push origin --tags`

0 comments on commit f2ac31d

Please sign in to comment.