Skip to content

Commit

Permalink
add new semantic-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie McBride authored and Charlie McBride committed Jun 27, 2024
1 parent 5ee206b commit 1bd3b86
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This Github action is the release trigger for Azure/karpenter-provider-azure
# It will auto-generate the next semantic release version and tag the git ref

name: Release Trigger
on:
workflow_dispatch:

jobs:
generate-sem-ver:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20.x' # semantic-release requires Node version 20.8.1 or higher
- name: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx semantic-release@18
8 changes: 8 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/git"
]
}

0 comments on commit 1bd3b86

Please sign in to comment.