Skip to content

Commit 1eb4e40

Browse files
authored
Merge pull request #23 from ebenjs/bundle
fix: added semantic versionnning
2 parents d4f3c8b + b717784 commit 1eb4e40

File tree

4 files changed

+5342
-61
lines changed

4 files changed

+5342
-61
lines changed

.github/workflows/node.js.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +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:
14-
1517
runs-on: ubuntu-latest
16-
18+
permissions:
19+
contents: write
20+
issues: write
21+
pull-requests: write
22+
id-token: write
1723
strategy:
1824
matrix:
19-
node-version: [16.x, 18.x]
25+
node-version: [18.x]
2026
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2127

2228
steps:
23-
- uses: actions/checkout@v3
29+
- name: Checkout
30+
uses: actions/checkout@v3
2431
- name: Use Node.js ${{ matrix.node-version }}
2532
uses: actions/setup-node@v3
2633
with:
@@ -31,3 +38,9 @@ jobs:
3138
- run: npm test
3239
- run: npm run format
3340
- run: npm run build
41+
- run: npx semantic-release
42+
43+
- name: Release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
run: npx semantic-release

.releaserc

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

0 commit comments

Comments
 (0)