Skip to content

Commit 5a5b746

Browse files
authored
Merge branch 'master' into feature/project-filter
2 parents 760f892 + fb7a65d commit 5a5b746

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish to npm
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches:
6+
- master
77

88
jobs:
99
test:
@@ -19,8 +19,6 @@ jobs:
1919
publish:
2020
needs: test
2121
runs-on: ubuntu-latest
22-
permissions:
23-
contents: write
2422
steps:
2523
- uses: actions/checkout@v4
2624
- uses: actions/setup-node@v4
@@ -29,10 +27,19 @@ jobs:
2927
registry-url: https://registry.npmjs.org
3028
- run: npm ci
3129
- run: npm run build
32-
- run: npm publish --access=public
30+
- name: Bump patch version
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
npm version patch --no-git-tag-version
35+
VERSION=$(node -p "require('./package.json').version")
36+
echo "VERSION=$VERSION" >> $GITHUB_ENV
37+
- name: Publish to npm
38+
run: npm publish --access=public
3339
env:
3440
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35-
- name: Create GitHub Release
36-
run: gh release create ${{ github.ref_name }} --generate-notes
37-
env:
38-
GH_TOKEN: ${{ github.token }}
41+
- name: Push version bump
42+
run: |
43+
git add package.json package-lock.json
44+
git commit -m "chore: bump version to ${{ env.VERSION }} [skip ci]"
45+
git push

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@odedha/claude-watch",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Live monitoring dashboard for Claude Code sessions",
55
"type": "module",
66
"main": "dist/index.js",
@@ -14,8 +14,19 @@
1414
"test:watch": "vitest",
1515
"prepublishOnly": "npm run build"
1616
},
17-
"files": ["dist", "README.md"],
18-
"keywords": ["claude", "claude-code", "monitor", "dashboard", "tui", "tokens", "cost"],
17+
"files": [
18+
"dist",
19+
"README.md"
20+
],
21+
"keywords": [
22+
"claude",
23+
"claude-code",
24+
"monitor",
25+
"dashboard",
26+
"tui",
27+
"tokens",
28+
"cost"
29+
],
1930
"author": "Oded Har-Tal",
2031
"license": "MIT",
2132
"repository": {

0 commit comments

Comments
 (0)