Skip to content

Commit 5cc3ac9

Browse files
committed
chore: initial release setup
1 parent 91a8f27 commit 5cc3ac9

6 files changed

Lines changed: 55 additions & 16 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: pnpm install
2929

3030
- name: Build docs
31-
run: pnpm docs
31+
run: pnpm run docs
3232

3333
- name: Deploy to GitHub Pages
3434
uses: peaceiris/actions-gh-pages@v3

.github/workflows/release.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,27 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
12+
- name: Checkout Code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
1417
with:
1518
node-version: 20
1619
registry-url: 'https://registry.npmjs.org/'
20+
1721
- name: Install pnpm
1822
run: npm install -g pnpm
19-
- run: pnpm install
20-
- run: pnpm run build
21-
- run: npx semantic-release --no-ci
23+
24+
- name: Install Dependencies
25+
run: pnpm install
26+
27+
- name: Build Package
28+
run: pnpm run build
29+
30+
- name: Run Semantic Release
31+
run: npx semantic-release
2232
env:
2333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
CI: true

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
2-
access=public
2+
access=public
3+
always-auth=true

.releaserc.json

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
11
{
22
"branches": ["main"],
3+
"tagFormat": "v${version}",
4+
"release": {
5+
"initialVersion": "0.0.1"
6+
},
37
"plugins": [
4-
"@semantic-release/commit-analyzer",
8+
[
9+
"@semantic-release/commit-analyzer",
10+
{
11+
"releaseRules": [
12+
{ "type": "feat", "release": "minor" },
13+
{ "type": "fix", "release": "patch" },
14+
{ "type": "chore", "release": "patch" },
15+
{ "type": "docs", "release": "patch" },
16+
{ "type": "refactor", "release": "patch" },
17+
{ "type": "style", "release": "patch" },
18+
{ "type": "test", "release": "patch" },
19+
{ "type": "build", "release": "patch" }
20+
],
21+
"parserOpts": {
22+
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
23+
}
24+
}
25+
],
526
"@semantic-release/release-notes-generator",
627
"@semantic-release/changelog",
7-
"@semantic-release/npm",
28+
[
29+
"@semantic-release/npm",
30+
{
31+
"npmPublish": true
32+
}
33+
],
834
"@semantic-release/github"
9-
],
10-
"release": {
11-
"initialVersion": "0.0.1"
12-
}
35+
]
1336
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "uni-dev-kit",
2+
"name": "uniswap-dev-kit",
33
"version": "0.0.1",
44
"description": "A modern TypeScript library for integrating Uniswap into your dapp.",
55
"main": "dist/index.js",
@@ -43,6 +43,10 @@
4343
],
4444
"author": "BootNodeDev",
4545
"license": "MIT",
46+
"publishConfig": {
47+
"access": "public",
48+
"registry": "https://registry.npmjs.org/"
49+
},
4650
"peerDependencies": {
4751
"@tanstack/react-query": "^5.0.0",
4852
"react": "^18.0.0",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
},
2525
},
2626
"include": ["src/**/*"],
27-
"exclude": ["node_modules", "dist"]
27+
"exclude": ["node_modules", "dist", "docs"]
2828
}

0 commit comments

Comments
 (0)