Skip to content

Commit c148b46

Browse files
author
arnoson
committed
chore: add ci
closes #3
1 parent 76ea54b commit c148b46

File tree

3 files changed

+88
-1967
lines changed

3 files changed

+88
-1967
lines changed

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 18
22+
registry-url: https://registry.npmjs.org/
23+
24+
- run: corepack enable
25+
26+
- name: Install
27+
run: pnpm i
28+
29+
- name: Build
30+
run: pnpm run build
31+
32+
- name: Publish to npm
33+
run: npm publish --access public
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
37+
- run: npx changelogithub
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "shx rm -rf ./dist && tsup src/index.ts --dts --format esm",
1717
"dev": "vite",
1818
"prepublishOnly": "npm run build",
19-
"release": "np --no-2fa",
19+
"release": "tsc --noEmit && bumpp --all",
2020
"test": "vitest run",
2121
"test-dev": "vitest watch"
2222
},
@@ -31,8 +31,8 @@
3131
"author": "arnoson",
3232
"license": "MIT",
3333
"devDependencies": {
34+
"bumpp": "^8.2.1",
3435
"jsdom": "^20.0.0",
35-
"np": "^7.6.2",
3636
"shx": "^0.3.4",
3737
"tsup": "^6.0.1",
3838
"typescript": "^4.8.4",

0 commit comments

Comments
 (0)