# Alurkerja UI

## Run Locally

Clone the project

```bash
  git clone https://gitlab.javan.co.id/alurkerja/alurkerja-ui.git
  cd alurkerja-ui
  yarn install --frozen-lockfile
```

Start the server

```bash
  yarn storybook
```

## Deploy

```bash
  yarn build-storybook
```

## Publish & Versioning

to help switching npmjs account use [npm-user-switch](https://github.com/perry-mitchell/npm-user-switch)

build first

```bash
  yarn build
```

Update version patch (0.0.x)

```bash
  yarn publish --patch
```

Update version minor (0.x.0)

```bash
  yarn publish --minor
```

Update version major (x.0.0)

```bash
  yarn publish --major
```

Update version patch (0.0.x) for Nextjs (

```bash
  # work on branch develop first than merge to develop-next
  git checkout develop-next
  git merge develop
  yarn build
  yarn publish --patch --tag next
```

## Working with issue

1. open [Issue Alurkerja-ui](https://gitlab.javan.co.id/alurkerja/alurkerja-ui/-/issues)
2. klik the issue
3. klik dropdown button and select `Create Branch` fill the source with `develop` to create new branch from develop
4. working on that branch, when finish MR to develop

## Merge Request

1. before commit please run yarn prettier first to make sure all file formated correctly
