Skip to content

Commit fe9e35b

Browse files
authored
chore: add GH Pages build & foundations for release workflow (#105)
1 parent a79c2f5 commit fe9e35b

22 files changed

Lines changed: 9755 additions & 4173 deletions

.devcontainer/devcontainer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"workspaceFolder": "/workspaces/react-vtree",
55
"runArgs": ["--name=reactvtree_dev"],
66
"containerEnv": {
7+
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
78
"PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD": "1",
89
"CODEX_HOME": "/workspaces/react-vtree/.agents/codex"
910
},

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
workflow_dispatch:
55
push:
6-
branches: [master]
6+
branches: [main]
77
paths:
88
- '.github/workflows/ci.yml'
99
- '__stories__/**'
@@ -21,7 +21,7 @@ on:
2121
- 'tsconfig.json'
2222
- 'vitest.config.ts'
2323
pull_request:
24-
branches: [master]
24+
branches: [main]
2525
types: [opened, synchronize, reopened]
2626
paths:
2727
- '.github/workflows/ci.yml'
@@ -59,3 +59,10 @@ jobs:
5959
run: npm ci
6060
- name: Check
6161
run: npm run check
62+
- name: Coverage
63+
run: npm run test:coverage
64+
- name: Upload coverage to Codecov
65+
uses: codecov/codecov-action@v5
66+
with:
67+
files: .coverage/lcov.info
68+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pages.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: GitHub Pages
2+
3+
on:
4+
workflow_run:
5+
workflows: [CI]
6+
branches: [main]
7+
types: [completed]
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
17+
18+
jobs:
19+
deploy:
20+
name: Build & Deploy Storybook
21+
if: github.event.workflow_run.conclusion == 'success'
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 10
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
steps:
28+
- uses: actions/checkout@v6
29+
- uses: actions/setup-node@v6
30+
with:
31+
cache: npm
32+
node-version: lts/*
33+
- run: npm ci
34+
- run: npm run storybook:build
35+
- uses: actions/configure-pages@v6
36+
- uses: actions/upload-pages-artifact@v4
37+
with:
38+
path: storybook-static
39+
- id: deployment
40+
uses: actions/deploy-pages@v5

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# testing
77
/.nyc_output
8-
/coverage
8+
/.coverage
99
/storybook-static
1010

1111
# production

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
[![Latest Stable Version](https://img.shields.io/npm/v/react-vtree.svg)](https://www.npmjs.com/package/react-vtree)
44
[![License](https://img.shields.io/npm/l/react-vtree.svg)](./LICENSE)
55
[![CI Status](https://github.com/Lodin/react-vtree/workflows/CI/badge.svg)](https://github.com/Lodin/react-vtree/actions)
6-
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Lodin_react-vtree&metric=coverage)](https://sonarcloud.io/dashboard?id=Lodin_react-vtree)
7-
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=Lodin_react-vtree&metric=bugs)](https://sonarcloud.io/dashboard?id=Lodin_react-vtree)
8-
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=Lodin_react-vtree&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=Lodin_react-vtree)
6+
[![Coverage](https://codecov.io/gh/Lodin/react-vtree/branch/main/graph/badge.svg)](https://codecov.io/gh/Lodin/react-vtree)
97

108
This package provides a lightweight and flexible solution for rendering large tree structures. It is built on top of the [react-window](https://github.com/bvaughn/react-window) library.
119

docs/favicon.ico

-32.2 KB
Binary file not shown.

docs/iframe.html

Lines changed: 0 additions & 74 deletions
This file was deleted.

docs/index.html

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/main.1f5d05ff1080719ccfd7.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/main.3bee8bdae6551f0ed35f.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)