Skip to content

Commit

Permalink
chore: release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Nov 6, 2024
1 parent 3175cb7 commit d3d78a7
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Site

on:
push:
branches: [master]

jobs:
deploy-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: make
- uses: actions/setup-node@v3
with:
node-version: 22.9.0
- name: Build site
run: make build-server

- name: Deploy site
uses: JamesIves/[email protected]
with:
branch: gh-page
folder: display
single-commit: true
clean: true
25 changes: 25 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish
on:
push:
tags: ["v*"]

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
- name: Install Dependices
run: make
- name: Pack and Publish
run: |
make build-lib
npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: releaser

on:
push:
tags: ["v*"]

jobs:
releaser:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extra Changelog
run: |
CHANGELOG=$(awk -v ver=$(awk -F'"' '/"version": ".+"/{ print $4; exit; }' package.json) '/^## / { if (p) { exit }; if ($2 == ver) { p=1; next} } p' CHANGELOG.md)
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Github Releaser
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
body: ${{ env.CHANGELOG }}
draft: false
prerelease: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
.DS_Store
display
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.1.0

First version.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Usage

```ts
import { createTreemap, presetDecorator } from '.'
import { createTreemap, presetDecorator } from 'squarified'

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

Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "squarified",
"version": "0.0.0",
"version": "0.1.0",
"description": "squarified tree map",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand All @@ -17,6 +17,15 @@
"squarified",
"tree-map"
],
"files": [
"dist",
"LICENSE",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/nonzzz/squarified.git"
},
"author": "Kanno",
"license": "MIT",
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { defineConfig } from 'vite'

export default defineConfig({
root: './dev'
root: './dev',
build: {
outDir: '../display'
}
})

0 comments on commit d3d78a7

Please sign in to comment.