Skip to content

Commit 7df9500

Browse files
arrowplumCopilotsemantic-release-bot
authored
feat(release): add semantic release configuration and release workflow (#60)
--------- Co-authored-by: Copilot <[email protected]> Co-authored-by: semantic-release-bot <[email protected]>
1 parent 7bb8579 commit 7df9500

File tree

3 files changed

+129
-2
lines changed

3 files changed

+129
-2
lines changed

.github/workflows/release.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: NoOp
15+
- uses: actions/checkout@v5
16+
with:
17+
fetch-depth: 0
18+
persist-credentials: false
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Semantic Release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1627
run: |
17-
echo "not an op"
28+
npx \
29+
-p semantic-release@24 \
30+
-p @semantic-release/commit-analyzer@13 \
31+
-p @semantic-release/release-notes-generator@14 \
32+
-p @semantic-release/changelog@6 \
33+
-p @semantic-release/git@10 \
34+
-p @semantic-release/github@11 \
35+
-p conventional-changelog@7 \
36+
-p conventional-changelog-conventionalcommits@8 \
37+
semantic-release

.releaserc.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"branches": ["main", "release/*"],
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "conventionalcommits",
8+
"releaseRules": [
9+
{
10+
"breaking": true,
11+
"release": "major"
12+
},
13+
{
14+
"type": "feat",
15+
"release": "minor"
16+
},
17+
{
18+
"type": "fix",
19+
"release": "patch"
20+
},
21+
{
22+
"type": "refactor",
23+
"release": false
24+
},
25+
{
26+
"type": "refactor",
27+
"breaking": true,
28+
"release": "major"
29+
},
30+
{
31+
"type": "perf",
32+
"release": "patch"
33+
},
34+
{
35+
"type": "revert",
36+
"release": "patch"
37+
},
38+
{
39+
"type": "docs",
40+
"release": false
41+
},
42+
{
43+
"type": "chore",
44+
"release": false
45+
},
46+
{
47+
"type": "build",
48+
"release": false
49+
}
50+
]
51+
}
52+
],
53+
[
54+
"@semantic-release/release-notes-generator",
55+
{
56+
"preset": "conventionalcommits"
57+
}
58+
],
59+
[
60+
"@semantic-release/changelog",
61+
{
62+
"changelogFile": "CHANGELOG.md"
63+
}
64+
],
65+
[
66+
"@semantic-release/git",
67+
{
68+
"assets": ["CHANGELOG.md"],
69+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
70+
}
71+
],
72+
"@semantic-release/github"
73+
]
74+
}

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## [2.0.0](https://github.com/aerospike/shared-workflows/compare/v1.2.0...v2.0.0) (2025-10-16)
2+
3+
### ⚠ BREAKING CHANGES
4+
5+
* **workflows:** update reusable workflows to use consistent naming conventions (#58)
6+
* **workflows:** build info in build step [INFRA-189] (#53)
7+
8+
### Features
9+
10+
* **release:** add semantic release configuration and GitHub workflow for automated releases ([84b34f3](https://github.com/aerospike/shared-workflows/commit/84b34f32fd30be168dfe23e7de5af52c9b97d9cf))
11+
* **workflows:** add example Docker build and deploy workflow ([7420fc8](https://github.com/aerospike/shared-workflows/commit/7420fc85824d8db35263563939ac2a982eb1760c))
12+
* **workflows:** add use-artifacts job for JFrog CLI integration and Docker build ([20eaf2b](https://github.com/aerospike/shared-workflows/commit/20eaf2b44746e57e115d34a7adaa99787ecadb57))
13+
* **workflows:** add xray scan step to docker build workflow ([81f5a80](https://github.com/aerospike/shared-workflows/commit/81f5a808c226b1fbc0924f2fc205dd2838dff3d2))
14+
* **workflows:** example reusable integration workflow ([e9de96d](https://github.com/aerospike/shared-workflows/commit/e9de96d920618b04c155e5bbb8042cf12cdf50fe))
15+
16+
### Bug Fixes
17+
18+
* duplicate release-notes-generator item in .releaserc.json ([4412523](https://github.com/aerospike/shared-workflows/commit/44125235f019eed15da8a71847ed3c0e4ef2a57a))
19+
* **workflows:** check for create-release-bundle job to trigger only on workflow_dispatch event ([bfa5ab9](https://github.com/aerospike/shared-workflows/commit/bfa5ab9189f486eb58ae791a92bfd503aabc86c1))
20+
* **workflows:** consistency is the enemy of enterprise ([205f2b1](https://github.com/aerospike/shared-workflows/commit/205f2b17f3dc75391a96e68372720df01e12cbbb))
21+
* **workflows:** problems escaping auth lead to doing things "the right way" ([126817d](https://github.com/aerospike/shared-workflows/commit/126817d785a8dd641a1cee0fb6ce11b7d80491bf))
22+
* **workflows:** add Docker login step ([6edeaa9](https://github.com/aerospike/shared-workflows/commit/6edeaa9bbaae927045278a089a527bbe4db83d9a))
23+
* **workflows:** automated build name and build number not working ([76f30c2](https://github.com/aerospike/shared-workflows/commit/76f30c2ac3e88eb3fdcc28c0cd9ca6d06c6587db))
24+
* **workflows:** update checkout reference to specific commit ([bf987f5](https://github.com/aerospike/shared-workflows/commit/bf987f51782e3157de0cd2e4664a42b3ba3b73b2))
25+
* **workflows:** update checkout references to latest commit for reusable workflows ([c339172](https://github.com/aerospike/shared-workflows/commit/c3391724809c73637fb1efe8a224789ee234851c))
26+
* **workflows:** update CHECKOUT_REF to use github.workflow_sha for latest commit reference ([89275e3](https://github.com/aerospike/shared-workflows/commit/89275e31ce190f533705ab4dbc2e84a0908cd845))
27+
* **workflows:** update JFrog CLI version and docker login action version ([19afa38](https://github.com/aerospike/shared-workflows/commit/19afa38d72b1802b7ebd9bcf91375b2aa2f91438))
28+
* **workflows:** update repository URL format in reusable integration workflow ([0820609](https://github.com/aerospike/shared-workflows/commit/08206099d6b26d504537ec123f3d2d1c4c272ddf))
29+
30+
### Code Refactoring
31+
32+
* **workflows:** build info in build step [INFRA-189] ([#53](https://github.com/aerospike/shared-workflows/issues/53)) ([0da06cb](https://github.com/aerospike/shared-workflows/commit/0da06cb2182165b125dc219ca2fda09732ca0fa4))
33+
* **workflows:** update reusable workflows to use consistent naming conventions ([#58](https://github.com/aerospike/shared-workflows/issues/58)) ([4d3239c](https://github.com/aerospike/shared-workflows/commit/4d3239c1ab01899af88e3dddca06cbd3736e53fe))

0 commit comments

Comments
 (0)