Skip to content

Commit fdb6d65

Browse files
committed
chore: add changesets for releasing
1 parent 8fab5dc commit fdb6d65

6 files changed

Lines changed: 605 additions & 1223 deletions

File tree

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.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+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
permissions:
10+
id-token: write
11+
contents: read
12+
13+
jobs:
14+
release:
15+
name: Release
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v5
19+
20+
- uses: pnpm/action-setup@v4
21+
with:
22+
version: latest
23+
24+
- uses: actions/setup-node@v5.0.0
25+
with:
26+
cache: pnpm
27+
node-version: 22
28+
registry-url: https://registry.npmjs.org
29+
30+
- run: pnpm install
31+
env:
32+
CI: true
33+
34+
- name: Create release pull request
35+
uses: changesets/action@v1
36+
with:
37+
publish: pnpm ci:publish
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": "pnpm -r build",
77
"test": "pnpm -r test",
88
"lint": "pnpm -r lint",
9-
"release": "pnpm --filter @birchill/bugsnag-zero release",
9+
"ci:publish": "pnpm publish -r --access public",
1010
"prepare": "husky"
1111
},
1212
"lint-staged": {
@@ -24,14 +24,14 @@
2424
"bracketSpacing": true
2525
},
2626
"devDependencies": {
27+
"@changesets/cli": "2.29.7",
2728
"@types/aws-lambda": "8.10.152",
2829
"@types/node": "22.18.6",
2930
"@types/ua-parser-js": "0.7.39",
3031
"husky": "9.1.7",
3132
"lint-staged": "16.2.0",
3233
"oxlint": "1.18.0",
3334
"prettier": "3.6.2",
34-
"standard-version": "9.5.0",
3535
"tsdown": "0.15.4",
3636
"tslib": "2.8.1",
3737
"typescript": "5.9.2",

packages/bugsnag-zero-lambda-context/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"homepage": "https://github.com/birchill/bugsnag-zero/tree/main/packages/bugsnag-zero-lambda-context#readme",
2929
"peerDependencies": {
30-
"@birchill/bugsnag-zero": ">0.7.3"
30+
"@birchill/bugsnag-zero": "0.7.3"
3131
},
3232
"devDependencies": {
3333
"@birchill/bugsnag-zero": "workspace:*"

packages/bugsnag-zero/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"license": "MIT",
1212
"scripts": {
1313
"build": "tsdown",
14-
"release": "standard-version",
1514
"test": "vitest run",
1615
"lint": "oxlint"
1716
},

0 commit comments

Comments
 (0)