Skip to content

Commit

Permalink
chore: fix release configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Sep 12, 2023
1 parent 529763c commit a402406
Show file tree
Hide file tree
Showing 35 changed files with 349 additions and 280 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,18 @@ jobs:
GIT_COMMITTER_NAME: "@kdnjbot"
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
run: pnpm run release
run: |
# PATCH: replace workspace:* to *
# multi-semantic-release (especially @semrel-extra/npm not supported version `workspace:*`.
# So, need to replace it before release
homebin=$HOME/kdnj/bin
mkdir -p $homebin
echo -e '#!/bin/bash\npnpm "$@"' > $homebin/npm && chmod +x $homebin/npm
rc=/tmp/rcfile
echo 'shopt -s expand_aliases' > $rc
echo 'alias npm="$homebin/npm"' >> $rc
source $rc
find . -type f -name "package.json" -not -path './node_modules*' -not -path './.git*' -exec sed -i 's/workspace:\*/\*/g' {} \;
npm --help
pnpm run release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
| ---- | ----------- | ------- |
| [create-chakra-icons](https://github.com/kodingdotninja/chakra-icons/tree/main/packages/create-chakra-icons) || [![create-chakra-icons](https://badgen.net/npm/v/create-chakra-icons?color=green)](https://www.npmjs.com/package/create-chakra-icons) |
| [@tooling/msrconfig](https://github.com/kodingdotninja/chakra-icons/tree/main/tooling/msr.conf) || |
| [@chakra-icons/cli](https://github.com/kodingdotninja/chakra-icons/tree/main/tooling/cli) | | [![@chakra-icons/cli](https://badgen.net/npm/v/@chakra-icons/cli?color=green)](https://www.npmjs.com/package/@chakra-icons/cli) |
| [@chakra-icons/cli](https://github.com/kodingdotninja/chakra-icons/tree/main/tooling/cli) | | [![@chakra-icons/cli](https://badgen.net/npm/v/@chakra-icons/cli?color=green)](https://www.npmjs.com/package/@chakra-icons/cli) |
| [@chakra-icons/bootstrap](https://github.com/kodingdotninja/chakra-icons/tree/main/packages/@chakra-icons/bootstrap) || [![@chakra-icons/bootstrap version](https://badgen.net/npm/v/@chakra-icons/bootstrap?color=green)](https://www.npmjs.com/package/@chakra-icons/bootstrap) [![@chakra-icons/bootstrap treeshakeble](https://badgen.net/bundlephobia/tree-shaking/@chakra-icons/bootstrap?color=blue)](https://bundlephobia.com/package/@chakra-icons/bootstrap) |
| [@chakra-icons/carbon](https://github.com/kodingdotninja/chakra-icons/tree/main/packages/@chakra-icons/carbon) || [![@chakra-icons/carbon version](https://badgen.net/npm/v/@chakra-icons/carbon?color=green)](https://www.npmjs.com/package/@chakra-icons/carbon) [![@chakra-icons/carbon treeshakeble](https://badgen.net/bundlephobia/tree-shaking/@chakra-icons/carbon?color=blue)](https://bundlephobia.com/package/@chakra-icons/carbon) |
| [@chakra-icons/cryptocurrency-icons](https://github.com/kodingdotninja/chakra-icons/tree/main/packages/@chakra-icons/cryptocurrency-icons) || [![@chakra-icons/cryptocurrency-icons version](https://badgen.net/npm/v/@chakra-icons/cryptocurrency-icons?color=green)](https://www.npmjs.com/package/@chakra-icons/cryptocurrency-icons) [![@chakra-icons/cryptocurrency-icons treeshakeble](https://badgen.net/bundlephobia/tree-shaking/@chakra-icons/cryptocurrency-icons?color=blue)](https://bundlephobia.com/package/@chakra-icons/cryptocurrency-icons) |
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"packages/@chakra-icons/*",
"website",
"!website/**",
"!tooling/*.conf/**"
"!tooling/*"
],
"scripts": {
"# general commands": "--------------------------------------------------",
Expand Down Expand Up @@ -41,11 +41,14 @@
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"commitlint-config-squash-pr": "^1.1.0",
"eslint": "^8.47.0",
"husky": "^8.0.3",
"multi-semantic-release": "^3.0.2",
"plop": "^3.1.2",
"prettier": "^3.0.3",
"shx": "^0.3.4",
"turbo": "^1.10.13"
"turbo": "^1.10.13",
"typescript": "^5.2.2"
},
"prettier": "@kodingdotninja/style-guide/prettier",
"private": true
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/bootstrap/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/carbon/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/cryptocurrency-icons/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/cryptocurrency-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/feather/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/feather/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/flat-icon/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/flat-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/ionicons/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/ionicons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/octicons/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/octicons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
5 changes: 5 additions & 0 deletions packages/@chakra-icons/octicons/snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,11 @@
"svg": ".chakraIcons/icons/feed-merged-16.svg",
"code": "src/FeedMerged16.tsx"
},
{
"name": "FeedIssueReopen16",
"svg": ".chakraIcons/icons/feed-issue-reopen-16.svg",
"code": "src/FeedIssueReopen16.tsx"
},
{
"name": "FeedIssueOpen16",
"svg": ".chakraIcons/icons/feed-issue-open-16.svg",
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/simple-line-icons/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/simple-line-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@chakra-icons/tabler-icons/.releaserc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require("@tooling/msrconfig");
module.exports = require("../../../tooling/msr.conf")
1 change: 0 additions & 1 deletion packages/@chakra-icons/tabler-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
],
"devDependencies": {
"@chakra-icons/cli": "*",
"@tooling/msrconfig": "workspace:*",
"tsup": "^7.2.0"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit a402406

Please sign in to comment.