Skip to content

Commit

Permalink
feat: enable release script & remove lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Jun 11, 2021
1 parent f2ac31d commit 644678a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
7 changes: 0 additions & 7 deletions lerna.json

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"lint": "npx eslint --ext .js,.json,.vue --fix .",
"release": "zx scripts/release.mjs",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
"lint": "eslint --ext .js,.json,.vue .",
"lint:fix": "eslint --ext .js,.json,.vue --fix .",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"release": "zx scripts/release.mjs"
},
"devDependencies": {
"@hannoeru/eslint-config": "workspace:*",
"child_process": "^1.0.2",
"conventional-changelog-cli": "^2.1.1",
"eslint": "^7.28.0",
"fs-extra": "^10.0.0",
"lerna": "^4.0.0",
"zx": "^1.14.1"
}
}
12 changes: 6 additions & 6 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ execSync('npx bumpp package.json packages/*/package.json', { stdio: 'inherit' })

await $`pnpm changelog`

// await $`pnpm -r publish --access public --no-git-checks`
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`
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 644678a

Please sign in to comment.