Skip to content

Commit 3377aeb

Browse files
release v0.9.1
1 parent 76ff7ce commit 3377aeb

File tree

5 files changed

+962
-19
lines changed

5 files changed

+962
-19
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
concurrency:
2+
cancel-in-progress: true
3+
group: ${{ github.workflow }}
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
with:
11+
fetch-depth: 0
12+
- uses: ./.github/actions/prepare
13+
- run: git config user.name "${{ GITHUB_ACTOR }}"
14+
- run: git config user.email "${{ GITHUB_ACTOR }}@users.noreply.github.com"
15+
- env:
16+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
18+
- env:
19+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
20+
run: |
21+
if git log --format=%B -n 1 | grep -q 'release v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'; then
22+
pnpm release-it --no-increment --verbose
23+
fi
24+
25+
name: Release
26+
27+
on:
28+
push:
29+
branches:
30+
- main
31+
32+
permissions:
33+
contents: write
34+
id-token: write

.release-it.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"git": {
3+
"changelog": null,
4+
"tag": true,
5+
"push": true,
6+
"commit": false
7+
},
8+
"github": {
9+
"release": true,
10+
"releaseName": "v${version}",
11+
"releaseNotes": "git log --no-merges --pretty=format:\"* %s %h\" ${latestTag}...main | grep -v 'release v[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}\\.[0-9]\\{1,3\\}'\n"
12+
},
13+
"npm": {
14+
"publishArgs": ["--provenance"]
15+
}
16+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@laststance/git-gpt-commit",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"description": "An AI-powered Git extension that generates commit messages using OpenAI's GPT-3, streamlining the commit process and improving developer productivity.",
55
"main": "index.js",
66
"type": "module",
@@ -9,7 +9,8 @@
99
"prettier": "prettier --ignore-unknown --write .",
1010
"test": "vitest run",
1111
"lint": "eslint . --ext .ts,.tsx,.js,jsx,cjs,mjs",
12-
"lint:fix": "eslint . --ext .ts,.tsx,.js,jsx,cjs,mjs --fix"
12+
"lint:fix": "eslint . --ext .ts,.tsx,.js,jsx,cjs,mjs --fix",
13+
"release-commit": "node ./scripts/npm-publish-tool.mjs"
1314
},
1415
"repository": {
1516
"type": "git",
@@ -51,6 +52,7 @@
5152
"husky": "^9.1.7",
5253
"lint-staged": "^16.0.0",
5354
"prettier": "^3.5.3",
55+
"release-it": "^19.0.2",
5456
"task-master-ai": "^0.14.0",
5557
"typescript": "^5.8.3",
5658
"vite": "^6.3.3",

0 commit comments

Comments
 (0)