Skip to content

Commit 8d6c7ab

Browse files
authored
Merge branch 'develop' into feature-interactive-mode
2 parents 5e496f3 + 0cff970 commit 8d6c7ab

File tree

4 files changed

+6785
-1334
lines changed

4 files changed

+6785
-1334
lines changed

.github/workflows/node.js.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Node.js CI
4+
name: gpt-shell release
55

66
on:
77
push:
88
branches: ["main", "develop"]
99
pull_request:
1010
branches: ["main", "develop"]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
runs-on: ubuntu-latest
15-
18+
permissions:
19+
contents: write
20+
issues: write
21+
pull-requests: write
22+
id-token: write
1623
strategy:
1724
matrix:
18-
node-version: [16.x, 18.x]
25+
node-version: [18.x]
1926
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2027

2128
steps:
22-
- uses: actions/checkout@v3
29+
- name: Checkout
30+
uses: actions/checkout@v3
2331
- name: Use Node.js ${{ matrix.node-version }}
2432
uses: actions/setup-node@v3
2533
with:
@@ -30,3 +38,8 @@ jobs:
3038
- run: npm test
3139
- run: npm run format
3240
- run: npm run build
41+
42+
- name: Release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: npx semantic-release

.releaserc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
[
9+
"@semantic-release/github",
10+
{
11+
"assets": [
12+
{
13+
"path": "dist/index.js",
14+
"label": "Node executable file"
15+
},
16+
{
17+
"path": "dist/package.json",
18+
"label": "Module file"
19+
}
20+
]
21+
}
22+
]
23+
]
24+
}

0 commit comments

Comments
 (0)