Skip to content

Commit da3d494

Browse files
committed
chore: add release automation
1 parent 4f42dfa commit da3d494

4 files changed

Lines changed: 784 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
token: ${{ secrets.GH_ADMIN_TOKEN }}
1619

1720
- name: Set up pnpm
1821
uses: pnpm/action-setup@v4
@@ -36,3 +39,9 @@ jobs:
3639

3740
- name: Lint
3841
run: pnpm lint
42+
43+
- name: Release
44+
if: github.ref == 'refs/heads/main'
45+
run: pnpm release
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"lint": "publint",
2020
"test": "vitest",
2121
"bench": "vitest bench",
22-
"build": "tsdown"
22+
"build": "tsdown",
23+
"release": "release publish"
2324
},
2425
"files": [
2526
"./build"
@@ -37,6 +38,7 @@
3738
"license": "MIT",
3839
"homepage": "https://github.com/mswjs/url",
3940
"devDependencies": {
41+
"@ossjs/release": "^0.10.1",
4042
"@remix-run/route-pattern": "^0.19.0",
4143
"@types/node": "^25.5.0",
4244
"find-my-way": "^9.5.0",

0 commit comments

Comments
 (0)