Skip to content

Commit 18d6dcc

Browse files
authored
Publish (#4)
1 parent ba01116 commit 18d6dcc

File tree

6 files changed

+28
-8
lines changed

6 files changed

+28
-8
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*.*.*'
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm ci
16+
- run: npm run build
17+
- run: npm test
18+
- uses: JS-DevTools/npm-publish@v1
19+
with:
20+
token: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const isect = findIntersection(x0, y0, x1, y1, x2, y2, x3, y3, intersection);
2828
### Benchmark
2929

3030
```
31-
- 2d-segment-intersection x 12,139,495 ops/sec ±0.81% (88 runs sampled)
31+
- segment-intersection x 12,139,495 ops/sec ±0.81% (88 runs sampled)
3232
- exact-segment-intersect x 1,149,191 ops/sec ±2.38% (89 runs sampled)
3333
- segseg x 5,492,533 ops/sec ±4.01% (86 runs sampled)
3434
```

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "Fast 2d segment intersection following Schneider and Eberly",
55
"repository": {
66
"type": "git",
7-
"url": "git+https://github.com/w8r/2d-segment-intersection.git"
7+
"url": "git+https://github.com/w8r/segment-intersection.git"
88
},
9-
"homepage": "https://github.com/w8r/2d-segment-intersection",
9+
"homepage": "https://github.com/w8r/segment-intersection",
1010
"license": "MIT",
1111
"scripts": {
1212
"dev": "vite --config ./playground/vite.config.ts",
@@ -82,7 +82,7 @@
8282
"vitest": "0.7.11"
8383
},
8484
"bugs": {
85-
"url": "https://github.com/w8r/2d-segment-intersection/issues"
85+
"url": "https://github.com/w8r/segment-intersection/issues"
8686
},
8787
"directories": {
8888
"test": "tests"

playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<script type="module" src="./main.ts"></script>
1010
<iframe
1111
id="fork-button"
12-
src="https://ghbtns.com/github-btn.html?user=w8r&repo=2d-segment-intersection&type=star&count=true"
12+
src="https://ghbtns.com/github-btn.html?user=w8r&repo=segment-intersection&type=star&count=true"
1313
frameborder="0"
1414
scrolling="0"
1515
width="150"

tests/bench.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ new benchmark.Suite()
2323
// const [seg0, seg1] = segments[Math.floor(Math.random() * segments.length)];
2424
// findIntersection(...seg0, ...seg1);
2525
// })
26-
.add(chalk.white('2d-segment-intersection'), () => {
26+
.add(chalk.white('segment-intersection'), () => {
2727
const [seg0, seg1] = segments[Math.floor(Math.random() * segments.length)];
2828
findIntersection(
2929
seg0[0],

0 commit comments

Comments
 (0)