Skip to content

Commit 9dd4401

Browse files
authored
fix: add support for semantic release (#6)
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent 93b622c commit 9dd4401

6 files changed

Lines changed: 7141 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write # Required for creating releases/tags
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Required for semantic-release to access all commits
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 'lts/*'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run semantic-release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: npx semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ tags
4343
# End of https://www.toptal.com/developers/gitignore/api/helm,vim,linux
4444

4545
.vscode/
46+
node_modules/

.releaserc.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
branches:
2+
- main
3+
plugins:
4+
- "@semantic-release/commit-analyzer"
5+
- "@semantic-release/release-notes-generator"
6+
- - "@semantic-release/exec"
7+
- prepareCmd: sed -i.bak 's/^version:.*/version:${nextRelease.version}/' Chart.yaml && rm -f Chart.yaml.bak
8+
- "@semantic-release/github"
9+
- - "@semantic-release/git"
10+
- assets:
11+
- Chart.yaml
12+
message: "chore(release): ${nextRelease.version} [skip ci]"

Chart.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ keywords:
66
- confidential-computing
77
- confidential-containers
88
name: trustee
9-
version: 0.0.1
9+
# DO NOT EDIT VERSION HERE, IT IS AUTO-GENERATED BY SEMANTIC-RELEASE
10+
version: 0.0.2

0 commit comments

Comments
 (0)