Skip to content

Commit c31f9b9

Browse files
Royal-lobsterclaude
andcommitted
Switch to changesets for versioning and release management
- Replaced tag-based release workflow with changesets/action - Added .changeset/config.json with GitHub changelog integration - Added changeset/version/release npm scripts - Initial changeset for v0.1.0 minor release - Release workflow now creates version PRs and publishes on merge Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6edda12 commit c31f9b9

5 files changed

Lines changed: 1366 additions & 10 deletions

File tree

.changeset/config.json

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

.changeset/initial-release.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@iqai/alert-logger": minor
3+
---
4+
5+
Initial release of @iqai/alert-logger with core engine, Discord/Console adapters, reliability layer, and NestJS/Next.js integrations.

.github/workflows/release.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ name: Release
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
79

810
jobs:
9-
publish:
11+
release:
1012
runs-on: ubuntu-latest
1113
permissions:
12-
contents: read
14+
contents: write
15+
pull-requests: write
1316
id-token: write
1417

1518
steps:
@@ -31,7 +34,14 @@ jobs:
3134
- name: Build
3235
run: npm run build
3336

34-
- name: Publish to npm
35-
run: npm publish --provenance --access public
37+
- name: Create Release Pull Request or Publish
38+
id: changesets
39+
uses: changesets/action@v1
40+
with:
41+
publish: npx changeset publish
42+
title: 'chore: version packages'
43+
commit: 'chore: version packages'
3644
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3747
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)