Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add semantic release action flow #653

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/flow-semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Semantic Release

on:
workflow_dispatch:

jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: [self-hosted, Linux, medium, ephemeral]
steps:
- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Configure Node JS
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
- name: Clean Install
run: npm ci
- name: Build Source
run: npm run build
- name: Run semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
29 changes: 29 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const config = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
'preset': 'conventionalcommits',
'releaseRules': [{ breaking: true, release: 'minor' }]
}
],
[
'@semantic-release/release-notes-generator',
{
'preset': 'conventionalcommits',
}
],
[
'@semantic-release/changelog',
{
'changelogFile': 'CHANGELOG.md',
'changelogTitle': 'Hedera Local Node\'s CHANGELOG'
}
],
'@semantic-release/git',
"@semantic-release/github"
]
};

module.exports = config;
Loading