Skip to content

Commit e7107ca

Browse files
author
ordo-ci
committed
ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift'
1 parent a586294 commit e7107ca

File tree

1 file changed

+66
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)