-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: release-please initial configuration KK-1014
- Loading branch information
1 parent
36b9494
commit 5c591d8
Showing
6 changed files
with
61 additions
and
3 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,38 @@ | ||
# .github/workflows/release-please.yml | ||
name: release-please | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# manual triggered | ||
workflow_dispatch: | ||
inputs: | ||
label: | ||
description: 'PR label, force update for release-please PRs. Do not use spaces!' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install release-please client | ||
run: npm i release-please -g | ||
# extra label will be set on open release-please PR's to ensure PR re-generation (manifest -file merge issue) | ||
# extra label includes the released component tag or manual triggered label name | ||
- name: Create release pr | ||
run: | | ||
if [ -n "${{ github.event.release.tag_name }}" ]; then | ||
LABEL="--label ${{ github.event.release.tag_name }}" | ||
elif [ -n "${{ inputs.label }}" ]; then | ||
LABEL="--label ${{ inputs.label }}" | ||
fi | ||
echo $LABEL | ||
release-please release-pr --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY $LABEL | ||
# create release | ||
# rerun release-pr after release creation to fix manifest -file merge issue | ||
- name: Create github release | ||
run: | | ||
release-please github-release --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY | ||
release-please release-pr --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY |
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,3 @@ | ||
{ | ||
".": "1.13.1" | ||
} |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ trigger: | |
batch: true | ||
tags: | ||
include: | ||
- release-* | ||
- kukkuu-ui-v* | ||
paths: | ||
exclude: | ||
- README.md | ||
|
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
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
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,13 @@ | ||
{ | ||
"bootstrap-sha": "36b9494d73c7b8494819eb525b480b665e942bed", | ||
"sequential-calls": true, | ||
"packages": { | ||
".": { | ||
"release-type": "node", | ||
"package-name": "kukkuu-ui" | ||
} | ||
}, | ||
"plugins": [ | ||
"sentence-case" | ||
] | ||
} |