Skip to content
Merged
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
46 changes: 23 additions & 23 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# .github/workflows/chromatic.yml
# # .github/workflows/chromatic.yml

# Workflow name
name: 'Chromatic'
# # Workflow name
# name: 'Chromatic'

# Event for the workflow
on: [push]
# # Event for the workflow
# on: [push]

# List of jobs
jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: yarn
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
token: ${{ secrets.GITHUB_TOKEN }}
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# # List of jobs
# jobs:
# chromatic-deployment:
# # Operating System
# runs-on: ubuntu-latest
# # Job steps
# steps:
# - uses: actions/checkout@v1
# - name: Install dependencies
# run: yarn
# # 👇 Adds Chromatic as a step in the workflow
# - name: Publish to Chromatic
# uses: chromaui/action@v1
# # Chromatic GitHub Action options
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# # 👇 Chromatic projectToken, refer to the manage page to obtain it.
# projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.15.1'
node-version: '19.9.0'
registry-url: 'https://registry.npmjs.org'
- run: yarn install --silent
- run: yarn build
- run: npm install
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
42 changes: 21 additions & 21 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Run Unit Tests
# name: Run Unit Tests

on: [push]
# on: [push]

jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install modules
run: yarn install --silent --immutable
- name: Run Unit Tests
run: yarn test:prod
# jobs:
# unit-tests:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"
# - uses: actions/cache@v2
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
# - name: Install modules
# run: yarn install --silent --immutable
# - name: Run Unit Tests
# run: yarn test:prod
15 changes: 11 additions & 4 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,24 @@ module.exports = {
"../src/**/*.stories.@(js|jsx|ts|tsx)",
"../src/*.css",
],

"addons": [
"@storybook/addon-a11y",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-postcss"
"@storybook/addon-mdx-gfm"
],
"framework": "@storybook/vue3",
"core": {
"builder": "@storybook/builder-vite"

"framework": {
name: "@storybook/vue3-vite",
options: {}
},

"features": {
"storyStoreV7": false
},

docs: {
autodocs: true
}
}
5 changes: 0 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,5 @@ module.exports = {
'ts-jest': {
babelConfig: true,
},
'vue-jest': {
transform: {
'^tsx?$': 'babel-jest',
},
},
},
}
Loading