Skip to content

Commit

Permalink
Merge pull request #1 from babylonlabs-io/tong/add-changeset-support
Browse files Browse the repository at this point in the history
add changeset support
0xDazzer authored Nov 20, 2024
2 parents b6471c9 + bba3d58 commit 7151acd
Showing 6 changed files with 1,100 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
7 changes: 7 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"access": "public",
"baseBranch": "main"
}
5 changes: 5 additions & 0 deletions .changeset/tough-tips-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@babylonlabs-io/bbn-core-ui": patch
---

Add Changesets tooling
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish

on:
workflow_dispatch:
push:
branches:
- main
- tong/add-changeset-support

permissions:
pull-requests: write
contents: write

jobs:
lint_test:
uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@hiep/add-changeset
secrets: inherit
with:
run-build: true
run-unit-tests: false
run-changesets: true
publish: ${{ github.event_name == 'workflow_dispatch' }}
publish-command: |
./bin/ci_validate_version.sh
npm run release
1,038 changes: 1,032 additions & 6 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 23 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"name": "bbn-core-ui",
"private": true,
"name": "@babylonlabs-io/bbn-core-ui",
"version": "0.0.0",
"type": "module",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/babylonlabs-io/bbn-core-ui.git"
},
"main": "dist/index.cjs.js",
"exports": {
"require": "./dist/index.cjs.js",
"import": "./dist/index.es.js"
},
"scripts": {
"dev": "npm run storybook",
"build": "tsc -b && vite build",
@@ -11,15 +22,21 @@
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"prepare": "husky"
"prepare": "husky",
"release": "npm run build && changeset publish"
},
"files": [
"src",
"dist",
"public"
],
"peerDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^2.5.4"
},
"devDependencies": {
"react-icons": "^5.3.0",
"@changesets/cli": "^2.27.9",
"@chromatic-com/storybook": "^3.2.2",
"@eslint/js": "^9.13.0",
"@storybook/addon-essentials": "^8.4.2",
@@ -45,6 +62,7 @@
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"react-icons": "^5.3.0",
"storybook": "^8.4.2",
"storybook-dark-mode": "^4.0.2",
"tailwindcss": "^3.4.14",
@@ -64,4 +82,4 @@
"plugin:storybook/recommended"
]
}
}
}

0 comments on commit 7151acd

Please sign in to comment.