Skip to content

Commit

Permalink
Merge branch 'main' into imple-heading-component
Browse files Browse the repository at this point in the history
Signed-off-by: 8845musign <hiroki.yokouchi@dr-ubie.com>
  • Loading branch information
8845musign committed Apr 18, 2024
2 parents 66ae893 + 1ce29d6 commit a37528b
Show file tree
Hide file tree
Showing 81 changed files with 19,327 additions and 38,659 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ module.exports = {
],
'unused-imports/no-unused-imports': 'error',
'import/no-unresolved': 'off',
'no-console': 'error',
},
};
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@jmblog @takanorip
* @takanorip @8845musign
11 changes: 11 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
changelog:
categories:
- title: Features
labels:
- '*'
exclude:
authors:
- renovate
- title: Dependencies
labels:
- dependencies
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install dependencies
run: npm ci
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Publish Package to npm
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Create Release PR
on:
workflow_dispatch:
inputs:
semver:
description: 'New Version(semver)'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major

jobs:
auto-release:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.UBIE_NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Explicitly set .npmrc
run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc

- name: Install
run: npm ci
- name: Build
run: npm run build

- name: Release
run: npx release-it -i ${{ github.event.inputs.semver }} --ci
2 changes: 1 addition & 1 deletion .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
8 changes: 8 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"git": {
"commitMessage": "chore(release): 🤖 v${version}"
},
"github": {
"release": true
}
}
2 changes: 1 addition & 1 deletion .scaffdog/component.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { {{ inputs.name | pascal }} } from '../';

export default {
component: {{ inputs.name | pascal }},
} as Meta<typeof {{ inputs.name | pascal }}>;
} satisfies Meta<typeof {{ inputs.name | pascal }}>;

const defaultArgs = {};

Expand Down
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src'],
stories: ['../src/**/*.@(mdx|stories.@(ts|tsx))'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions'],
framework: '@storybook/react-vite',
docs: {
Expand Down
3 changes: 3 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script>
document.documentElement.setAttribute('lang', 'ja');
</script>
11 changes: 3 additions & 8 deletions actions/setup-node-and-install-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@ description: Action for setting up Node.js and installing dependencies
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Install npm 9
shell: bash
run: |
npm install -g npm@9
- name: Cache node_modules
id: node_modules_cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: './node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('./package-lock.json') }}-{{ checksum "patches.hash" }}
Expand Down
Loading

0 comments on commit a37528b

Please sign in to comment.