Skip to content

Commit

Permalink
Canary version show bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSpencer committed Jan 2, 2024
1 parent ca26a59 commit 257f7ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:
const packageJson = JSON.parse(fs.readFileSync("package.json"));
const version = packageJson.version;
text += `pnpm add react-trello-ts@${version}\n`
text += `pnpm add react-trello-ts@${version}\n\n`
text += `Current bundle size (minified + gzipped): ![NPM Bundle MIN Size](https://img.shields.io/bundlephobia/minzip/react-trello-ts.svg)\n\n`
text += `New bundle size (minified + gzipped): ![NPM Bundle MIN Size](https://img.shields.io/bundlephobia/minzip/react-trello-ts@${version})\n\n`
// Create a comment on the PR with the new canary version
github.rest.issues.createComment({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
"@types/uuid": "^8.3.4",
"gh-pages": "^4.0.0",
"i18next": "^17.0.3",
"playwright": "^1.40.1",
"react": "^18",
"react-dom": "^18",
"react-i18next": "^10.11.0",
"start-server-and-test": "^2.0.3",
"storybook": "7.6.7",
"styled-components": "^5.3.9",
"tsup": "^8.0.1",
"playwright": "^1.40.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
Expand Down

0 comments on commit 257f7ed

Please sign in to comment.