-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): add new semantic-release workflow (#420)
* add new semantic-release workflow * remove git secret * add dryRun * pin actions/setup-node to sommit --------- Co-authored-by: Charlie McBride <Charlie.McBride@microsoft.com>
- Loading branch information
1 parent
5ee206b
commit 1de9ce4
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
node-version: '20.x' # semantic-release requires Node version 20.8.1 or higher | ||
- name: semantic-release | ||
run: | | ||
npx semantic-release@18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"branches": ["main"], | ||
"dryRun": true, | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/git" | ||
] | ||
} |