Storybook page, exclude Jotai from dependabot, use NodeJS 20 for builds (#868)

This commit is contained in:
Evan Simkowitz 2024-09-26 14:17:52 -07:00 committed by GitHub
parent 5eeee9003a
commit 6ffa421744
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 74 additions and 5 deletions

View File

@ -20,6 +20,7 @@ updates:
dependency-type: "production"
exclude-patterns:
- "*electron*"
- "jotai"
electron:
patterns:
- "*electron*"

View File

@ -9,8 +9,8 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
env:
GO_VERSION: "1.22.5"
NODE_VERSION: "22.5.1"
GO_VERSION: "1.22"
NODE_VERSION: "20"
jobs:
runbuild:
permissions:

View File

@ -23,7 +23,7 @@ on:
type: boolean
default: true
env:
NODE_VERSION: "22.5.1"
NODE_VERSION: "20"
jobs:
bump-version:
runs-on: ubuntu-latest

View File

@ -20,7 +20,8 @@ on:
- cron: "36 5 * * 5"
env:
NODE_VERSION: "21.5.0"
NODE_VERSION: "20"
GO_VERSION: "1.22.5"
jobs:
analyze:
@ -68,7 +69,7 @@ jobs:
if: matrix.language == 'go'
uses: actions/setup-go@v5
with:
go-version: stable
go-version: ${{env.GO_VERSION}}
cache-dependency-path: |
go.sum
# We use Zig instead of glibc for cgo compilation as it is more-easily statically linked

42
.github/workflows/deploy-storybook.yml vendored Normal file
View File

@ -0,0 +1,42 @@
# Workflow name
name: Build and Publish Storybook to GitHub Pages
on:
push:
branches:
- "main"
permissions:
contents: read
pages: write
id-token: write
env:
NODE_VERSION: "20"
# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v4
# Set up Node
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: Install yarn
run: |
corepack enable
yarn install
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
with:
install_command: yarn # default: npm ci
build_command: yarn build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true

6
.storybook/manager.ts Normal file
View File

@ -0,0 +1,6 @@
import { addons } from "@storybook/manager-api";
import theme from "./theme";
addons.setConfig({
theme,
});

9
.storybook/theme.ts Normal file
View File

@ -0,0 +1,9 @@
import { create } from "@storybook/theming";
export default create({
base: "light",
brandTitle: "Wave Terminal Storybook",
brandUrl: "https://www.waveterm.dev",
brandImage: "../assets/wave-light.png",
brandTarget: "_self",
});

View File

@ -36,5 +36,14 @@
},
"[go]": {
"editor.defaultFormatter": "golang.go"
},
"[plaintext]": {
"editor.formatOnSave": false,
"editor.formatOnPaste": false,
"files.insertFinalNewline": false,
"files.trimFinalNewlines": true
},
"files.associations": {
"CNAME": "plaintext"
}
}

1
CNAME Normal file
View File

@ -0,0 +1 @@
storybook.waveterm.dev