File tree 3 files changed +40
-10
lines changed
3 files changed +40
-10
lines changed Original file line number Diff line number Diff line change 1
1
2
- name : Deploy VitePress site to Pages
2
+ name : Deploy docs to Pages
3
3
4
4
on :
5
- release :
6
- types : [ published ]
5
+ push :
6
+ branches : main
7
7
workflow_dispatch :
8
8
9
9
permissions :
30
30
uses : actions/configure-pages@v4
31
31
- name : Install dependencies
32
32
run : bun install
33
- - name : Cache dependencies
34
- uses : actions/cache@v4
35
- with :
36
- path : ~/.bun/install/cache
37
- key : ${{ runner.os }}-${{ hashFiles('**/bun.lockb') }}
38
33
- name : Build with VitePress
39
34
run : bun run docs:build
40
35
- name : Upload artifact
Original file line number Diff line number Diff line change
1
+ name : Publish to NPM
2
+
3
+ on :
4
+ push :
5
+ branches : main
6
+
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - uses : actions/setup-node@v3
13
+ with :
14
+ node-version : " 20"
15
+ - run : npm install
16
+ - uses : JS-DevTools/npm-publish@v3
17
+ with :
18
+ token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " vortex" ,
3
- "type" : " module" ,
2
+ "name" : " @westacks/vortex" ,
3
+ "version" : " 0.0.1" ,
4
+ "license" : " MIT" ,
5
+ "description" : " Server-based routing for SPAs" ,
6
+ "author" : " Dmytro Morozov <puny.flash@gmail.com>" ,
7
+ "homepage" : " https://westacks.github.io/vortex/" ,
8
+ "repository" : {
9
+ "type" : " git" ,
10
+ "url" : " git+https://github.com/westacks/vortex.git"
11
+ },
12
+ "bugs" : {
13
+ "url" : " https://github.com/westacks/vortex/issues"
14
+ },
15
+ "keywords" : [
16
+ " spa" ,
17
+ " routing" ,
18
+ " vortex"
19
+ ],
4
20
"scripts" : {
5
21
"build" : " vite build" ,
6
22
"prepublishOnly" : " npm run build" ,
22
38
"files" : [
23
39
" dist"
24
40
],
41
+ "type" : " module" ,
25
42
"main" : " ./dist/index.cjs" ,
26
43
"module" : " ./dist/index.js" ,
27
44
"types" : " ./dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments