Skip to content

Commit bf976f1

Browse files
chore: semantic release bot (#10)
1 parent 994e2e6 commit bf976f1

File tree

3 files changed

+34
-2
lines changed

3 files changed

+34
-2
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- feature/semantic-release
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 16
16+
- name: Release
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: npx -p @semantic-release/changelog -p @semantic-release/git -p semantic-release semantic-release --dry-run

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Compile and Test
2-
on: [push]
3-
2+
on:
3+
pull_request:
4+
branches:
5+
- master
46
jobs:
57
ShellTest:
68
strategy:

release.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
branches: ['master', 'feature/semantic-release'],
3+
plugins: [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/github",
7+
'@semantic-release/changelog',
8+
'@semantic-release/github',
9+
'@semantic-release/git',
10+
],
11+
};

0 commit comments

Comments
 (0)