- make changes
- change version +1 in package.json (example 1.2.3)
{
"name": "@nutrafol/nutrafol-ui-kit",
"version": "1.2.3"
...
- NOTE: keep same version if you dont want to publish changes (pipeline would fail)
- run
npm run build
to create transpiled library atdist/index.js
- commit and push
- pipeline will auto publish (make sure correct
FOLDER
set inbitbucket-pipelines.yml
) - see pipe https://bitbucket.org/nutrafol/npm/addon/pipelines/home
- modify package.json in your project to match the latest published version
...
"@nutrafol/nutrafol-ui-kit": "1.2.3",
"@nutrafol/popup-helper": "2.3.4",
...
-
run install
npm i
-
import component in your React code
import {Button} from '@nutrafol/nutrafol-ui-kit/dist';