mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Storybook page, exclude Jotai from dependabot, use NodeJS 20 for builds (#868)
This commit is contained in:
parent
5eeee9003a
commit
6ffa421744
1
.github/dependabot.yml
vendored
1
.github/dependabot.yml
vendored
@ -20,6 +20,7 @@ updates:
|
|||||||
dependency-type: "production"
|
dependency-type: "production"
|
||||||
exclude-patterns:
|
exclude-patterns:
|
||||||
- "*electron*"
|
- "*electron*"
|
||||||
|
- "jotai"
|
||||||
electron:
|
electron:
|
||||||
patterns:
|
patterns:
|
||||||
- "*electron*"
|
- "*electron*"
|
||||||
|
4
.github/workflows/build-helper.yml
vendored
4
.github/workflows/build-helper.yml
vendored
@ -9,8 +9,8 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+*"
|
- "v[0-9]+.[0-9]+.[0-9]+*"
|
||||||
env:
|
env:
|
||||||
GO_VERSION: "1.22.5"
|
GO_VERSION: "1.22"
|
||||||
NODE_VERSION: "22.5.1"
|
NODE_VERSION: "20"
|
||||||
jobs:
|
jobs:
|
||||||
runbuild:
|
runbuild:
|
||||||
permissions:
|
permissions:
|
||||||
|
2
.github/workflows/bump-version.yml
vendored
2
.github/workflows/bump-version.yml
vendored
@ -23,7 +23,7 @@ on:
|
|||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "22.5.1"
|
NODE_VERSION: "20"
|
||||||
jobs:
|
jobs:
|
||||||
bump-version:
|
bump-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
5
.github/workflows/codeql.yml
vendored
5
.github/workflows/codeql.yml
vendored
@ -20,7 +20,8 @@ on:
|
|||||||
- cron: "36 5 * * 5"
|
- cron: "36 5 * * 5"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: "21.5.0"
|
NODE_VERSION: "20"
|
||||||
|
GO_VERSION: "1.22.5"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
@ -68,7 +69,7 @@ jobs:
|
|||||||
if: matrix.language == 'go'
|
if: matrix.language == 'go'
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: ${{env.GO_VERSION}}
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
go.sum
|
go.sum
|
||||||
# We use Zig instead of glibc for cgo compilation as it is more-easily statically linked
|
# 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
42
.github/workflows/deploy-storybook.yml
vendored
Normal 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
6
.storybook/manager.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import { addons } from "@storybook/manager-api";
|
||||||
|
import theme from "./theme";
|
||||||
|
|
||||||
|
addons.setConfig({
|
||||||
|
theme,
|
||||||
|
});
|
9
.storybook/theme.ts
Normal file
9
.storybook/theme.ts
Normal 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",
|
||||||
|
});
|
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
@ -36,5 +36,14 @@
|
|||||||
},
|
},
|
||||||
"[go]": {
|
"[go]": {
|
||||||
"editor.defaultFormatter": "golang.go"
|
"editor.defaultFormatter": "golang.go"
|
||||||
|
},
|
||||||
|
"[plaintext]": {
|
||||||
|
"editor.formatOnSave": false,
|
||||||
|
"editor.formatOnPaste": false,
|
||||||
|
"files.insertFinalNewline": false,
|
||||||
|
"files.trimFinalNewlines": true
|
||||||
|
},
|
||||||
|
"files.associations": {
|
||||||
|
"CNAME": "plaintext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user