@ksw8954/git-ai-commit 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- name: Publish to npm
1
+ name: Publish to npm & Create Release
2
2
 
3
3
  on:
4
4
  push:
@@ -6,7 +6,8 @@ on:
6
6
  - 'v*'
7
7
 
8
8
  permissions:
9
- contents: read
9
+ contents: write
10
+ id-token: write
10
11
 
11
12
  jobs:
12
13
  publish:
@@ -18,9 +19,12 @@ jobs:
18
19
  - name: Use Node.js
19
20
  uses: actions/setup-node@v4
20
21
  with:
21
- node-version: 20
22
+ node-version: 22
22
23
  registry-url: https://registry.npmjs.org/
23
24
 
25
+ - name: Update npm for OIDC support
26
+ run: npm install -g npm@latest
27
+
24
28
  - name: Install dependencies
25
29
  run: npm ci
26
30
 
@@ -31,6 +35,25 @@ jobs:
31
35
  run: npm test
32
36
 
33
37
  - name: Publish
34
- run: npm publish
38
+ run: npm publish --provenance --access public
39
+
40
+ - name: Extract release notes from CHANGELOG
41
+ id: release_notes
42
+ run: |
43
+ VERSION="${GITHUB_REF_NAME#v}"
44
+ NOTES=$(awk -v ver="$VERSION" '
45
+ /^## / { if (found) exit; if ($2 == ver || $2 == ver" ") found=1; next }
46
+ found { print }
47
+ ' CHANGELOG.md)
48
+ echo "NOTES<<EOF" >> $GITHUB_OUTPUT
49
+ echo "$NOTES" >> $GITHUB_OUTPUT
50
+ echo "EOF" >> $GITHUB_OUTPUT
51
+
52
+ - name: Create GitHub Release
35
53
  env:
36
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
54
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55
+ run: |
56
+ gh release create "$GITHUB_REF_NAME" \
57
+ --title "$GITHUB_REF_NAME" \
58
+ --notes "${{ steps.release_notes.outputs.NOTES }}" \
59
+ --latest
package/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Changelog
2
2
 
3
3
 
4
- ## 1.2.0 - 2026-02-24
4
+ ## 1.2.1 - 2026-02-24
5
5
 
6
6
  ### New Features
7
7
  Add `--max-tokens` config option to set max completion tokens for AI responses
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ksw8954/git-ai-commit",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "AI-powered git commit message generator",
5
5
  "main": "dist/index.js",
6
6
  "bin": {