Skip to content

Commit d3d78a7

Browse files
committed
chore: release v0.1.0
1 parent 3175cb7 commit d3d78a7

File tree

8 files changed

+98
-3
lines changed

8 files changed

+98
-3
lines changed

.github/workflows/deploy-site.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
uses: JamesIves/[email protected]
22+
with:
23+
branch: gh-page
24+
folder: display
25+
single-commit: true
26+
clean: true

.github/workflows/publish.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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 }}

.github/workflows/release.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
33
.DS_Store
4+
display

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 0.1.0
2+
3+
First version.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## Usage
88

99
```ts
10-
import { createTreemap, presetDecorator } from '.'
10+
import { createTreemap, presetDecorator } from 'squarified'
1111

1212
const root = document.querySelector('#app')
1313

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "squarified",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"description": "squarified tree map",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
@@ -17,6 +17,15 @@
1717
"squarified",
1818
"tree-map"
1919
],
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+
},
2029
"author": "Kanno",
2130
"license": "MIT",
2231
"devDependencies": {

vite.config.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { defineConfig } from 'vite'
22

33
export default defineConfig({
4-
root: './dev'
4+
root: './dev',
5+
build: {
6+
outDir: '../display'
7+
}
58
})

0 commit comments

Comments
 (0)