Skip to content

Commit 75e6296

Browse files
committed
fix: added branch in semr config
1 parent b717784 commit 75e6296

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

.github/workflows/node.js.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: gpt-shell release
55

66
on:
77
push:
8-
branches: [ "main", "develop" ]
8+
branches: ["main", "develop"]
99
pull_request:
10-
branches: [ "main", "develop" ]
10+
branches: ["main", "develop"]
1111

1212
permissions:
1313
contents: read
@@ -26,21 +26,21 @@ jobs:
2626
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2727

2828
steps:
29-
- name: Checkout
30-
uses: actions/checkout@v3
31-
- name: Use Node.js ${{ matrix.node-version }}
32-
uses: actions/setup-node@v3
33-
with:
34-
node-version: ${{ matrix.node-version }}
35-
cache: 'npm'
36-
- run: npm install
37-
- run: npm run lint:fix
38-
- run: npm test
39-
- run: npm run format
40-
- run: npm run build
41-
- run: npx semantic-release
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
- name: Use Node.js ${{ matrix.node-version }}
32+
uses: actions/setup-node@v3
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
cache: "npm"
36+
- run: npm install
37+
- run: npm run lint:fix
38+
- run: npm test
39+
- run: npm run format
40+
- run: npm run build
41+
- run: npx semantic-release
4242

43-
- name: Release
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
run: npx semantic-release
43+
- name: Release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
46+
run: npx semantic-release

.releaserc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
2+
"branches": [
3+
"main"
4+
],
25
"plugins": [
36
"@semantic-release/commit-analyzer",
47
"@semantic-release/release-notes-generator",
58
[
69
"@semantic-release/github",
710
{
811
"assets": [
9-
{ "path": "dist/index.js", "label": "Node executable file" },
10-
{ "path": "dist/package.json", "label": "Module file" }
12+
{
13+
"path": "dist/index.js",
14+
"label": "Node executable file"
15+
},
16+
{
17+
"path": "dist/package.json",
18+
"label": "Module file"
19+
}
1120
]
1221
}
1322
]
1423
]
15-
}
24+
}

0 commit comments

Comments
 (0)