-
Notifications
You must be signed in to change notification settings - Fork 25
66 lines (60 loc) · 1.76 KB
/
semantic-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Semantic Release
on:
workflow_dispatch:
push:
branches: [ main, next ]
jobs:
semantic-release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Semantic Release Config
run: |
echo "
branches:
- main
- name: 'next'
prerelease: true
preset: 'conventionalcommits'
tagFormat: '\${version}'
plugins:
- - '@semantic-release/commit-analyzer'
- releaseRules:
- breaking: true
release: major
- type: build
release: patch
- type: chore
release: false
- type: feat
release: false
- type: fix
release: false
- scope: 'no-release'
release: false
- scope: 'hotfix'
release: patch
- scope: 'patch'
release: patch
- scope: 'minor'
release: minor
- scope: 'major'
release: major
- - '@semantic-release/release-notes-generator'
- - '@semantic-release/github'
- successComment: false
failTitle: false" > .releaserc.yml
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install semantic-release
run: |
npm install semantic-release@v24 conventional-changelog-conventionalcommits@v8 -D
npm list
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release