File tree Expand file tree Collapse file tree 8 files changed +98
-3
lines changed Expand file tree Collapse file tree 8 files changed +98
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Site
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+
7
+ jobs :
8
+ deploy-site :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - name : Install Dependencies
13
+ run : make
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : 22.9.0
17
+ - name : Build site
18
+ run : make build-server
19
+
20
+ - name : Deploy site
21
+
22
+ with :
23
+ branch : gh-page
24
+ folder : display
25
+ single-commit : true
26
+ clean : true
Original file line number Diff line number Diff line change
1
+ name : publish
2
+ on :
3
+ push :
4
+ tags : ["v*"]
5
+
6
+ jobs :
7
+ publish :
8
+ runs-on : ubuntu-latest
9
+ permissions :
10
+ contents : read
11
+ id-token : write
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : actions/setup-node@v4
15
+ with :
16
+ node-version : 22
17
+ registry-url : " https://registry.npmjs.org"
18
+ - name : Install Dependices
19
+ run : make
20
+ - name : Pack and Publish
21
+ run : |
22
+ make build-lib
23
+ npm publish --provenance --access public
24
+ env :
25
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : releaser
2
+
3
+ on :
4
+ push :
5
+ tags : ["v*"]
6
+
7
+ jobs :
8
+ releaser :
9
+ permissions :
10
+ contents : write
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Extra Changelog
15
+ run : |
16
+ CHANGELOG=$(awk -v ver=$(awk -F'"' '/"version": ".+"/{ print $4; exit; }' package.json) '/^## / { if (p) { exit }; if ($2 == ver) { p=1; next} } p' CHANGELOG.md)
17
+ echo "CHANGELOG<<EOF" >> $GITHUB_ENV
18
+ echo "$CHANGELOG" >> $GITHUB_ENV
19
+ echo "EOF" >> $GITHUB_ENV
20
+ - name : Github Releaser
21
+ uses : actions/create-release@v1
22
+ env :
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ with :
25
+ tag_name : ${{ github.ref }}
26
+ body : ${{ env.CHANGELOG }}
27
+ draft : false
28
+ prerelease : false
Original file line number Diff line number Diff line change 1
1
node_modules
2
2
dist
3
3
.DS_Store
4
+ display
Original file line number Diff line number Diff line change
1
+ # 0.1.0
2
+
3
+ First version.
Original file line number Diff line number Diff line change 7
7
## Usage
8
8
9
9
``` ts
10
- import { createTreemap , presetDecorator } from ' . '
10
+ import { createTreemap , presetDecorator } from ' squarified '
11
11
12
12
const root = document .querySelector (' #app' )
13
13
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " squarified" ,
3
- "version" : " 0.0 .0" ,
3
+ "version" : " 0.1 .0" ,
4
4
"description" : " squarified tree map" ,
5
5
"main" : " dist/index.js" ,
6
6
"module" : " dist/index.mjs" ,
17
17
" squarified" ,
18
18
" tree-map"
19
19
],
20
+ "files" : [
21
+ " dist" ,
22
+ " LICENSE" ,
23
+ " README.md"
24
+ ],
25
+ "repository" : {
26
+ "type" : " git" ,
27
+ "url" : " git+https://github.com/nonzzz/squarified.git"
28
+ },
20
29
"author" : " Kanno" ,
21
30
"license" : " MIT" ,
22
31
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
import { defineConfig } from 'vite'
2
2
3
3
export default defineConfig ( {
4
- root : './dev'
4
+ root : './dev' ,
5
+ build : {
6
+ outDir : '../display'
7
+ }
5
8
} )
You can’t perform that action at this time.
0 commit comments