Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .circleci/config.yml

This file was deleted.

81 changes: 81 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Build and Deploy

on:
push:
branches: "*"
pull_request:
branches: "*"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container:
image: cimg/node:22.16

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Copy npm config
run: cp .npmrc.ci .npmrc

- name: Restore cache
uses: actions/cache@v4
with:
path: ./node_modules
key: v1-dependencies-${{ hashFiles('package-lock.json') }}

- name: Install dependencies
run: npm install

- name: Save cache
uses: actions/cache/save@v4
with:
path: ./node_modules
key: v1-dependencies-${{ hashFiles('package-lock.json') }}

- name: Build
run: npm run build

- name: Persist to workspace
uses: actions/upload-artifact@v4
with:
name: mojotech-ui
path: .

ensure_version_bump:
runs-on: ubuntu-latest
container:
image: cimg/node:22.16
needs: build
if: github.ref == 'refs/heads/release'

steps:
- name: Attach workspace
uses: actions/download-artifact@v4
with:
name: mojotech-ui
path: .

- name: Ensure version bump
run: |
./scripts/npm_version_check.sh

publish:
runs-on: ubuntu-latest
container:
image: cimg/node:22.16
needs: ensure_version_bump
if: github.ref == 'refs/heads/release'

steps:
- name: Attach workspace
uses: actions/download-artifact@v4
with:
name: mojotech-ui
path: .

- name: Publish updated NPM package
run: |
npm publish
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ build
storybook-static
dist
.DS_Store

*storybook.log
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/carbon
22.16.0
12 changes: 0 additions & 12 deletions .storybook/config.tsx

This file was deleted.

13 changes: 13 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type { import('@storybook/react-vite').StorybookConfig } */
const config = {
stories: [
"../stories/**/*.mdx",
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: ["@storybook/addon-docs", "@storybook/addon-onboarding"],
framework: {
name: "@storybook/react-vite",
options: {},
},
};
export default config;
23 changes: 23 additions & 0 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ThemeProvider } from "@emotion/react";
import theme from "../src/lib/theme";

/** @type { import('@storybook/react-vite').Preview } */
const preview = {
decorators: [
(Story) => (
<ThemeProvider theme={theme}>
<Story />
</ThemeProvider>
),
],
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
12 changes: 0 additions & 12 deletions .storybook/theme-decorator.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions .storybook/webpack.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 16.15.1
nodejs 22.16.0
Loading
Loading