File tree Expand file tree Collapse file tree 5 files changed +323
-1
lines changed Expand file tree Collapse file tree 5 files changed +323
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy example
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ deployt :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : pnpm/action-setup@v4
16
+ - uses : actions/setup-node@v4
17
+
18
+ - name : Install & Build
19
+ run : |
20
+ pnpm install
21
+ pnpm build
22
+
23
+ - name : Generate example
24
+ run : pnpm run example
25
+
26
+ - name : Deploy with gh-pages
27
+ run : |
28
+ git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
29
+ pnpm run deploy -u "github-actions-bot <support+actions@github.com>"
Original file line number Diff line number Diff line change 5
5
.custom-report-directory
6
6
.test-plugin
7
7
.DS_store
8
+ example
Original file line number Diff line number Diff line change 18
18
"scripts" : {
19
19
"build" : " rm -rf ./dist && tsc --project tsconfig.build.json && cp src/*.css dist" ,
20
20
"test" : " vitest --coverage" ,
21
- "typecheck" : " tsc --noEmit"
21
+ "typecheck" : " tsc --noEmit" ,
22
+ "example" : " node scripts/generate-example.mjs" ,
23
+ "deploy" : " touch example/.nojekyll && gh-pages --dist example --dotfiles true"
22
24
},
23
25
"peerDependencies" : {
24
26
"vite" : " >=4"
25
27
},
26
28
"devDependencies" : {
27
29
"@types/node" : " ^22.4.1" ,
28
30
"@vitest/coverage-v8" : " ^2.0.5" ,
31
+ "gh-pages" : " ^6.1.1" ,
29
32
"magic-string" : " ^0.30.11" ,
30
33
"typescript" : " ^5.5.4" ,
31
34
"vite" : " ^5.4.0" ,
You can’t perform that action at this time.
0 commit comments