Skip to content

Commit

Permalink
chore: release-please initial configuration KK-1014
Browse files Browse the repository at this point in the history
  • Loading branch information
terovirtanen committed Jun 29, 2023
1 parent 36b9494 commit 5c591d8
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release-please.yml
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
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.13.1"
}
2 changes: 1 addition & 1 deletion azure-pipelines-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ trigger:
batch: true
tags:
include:
- release-*
- kukkuu-ui-v*
paths:
exclude:
- README.md
Expand Down
4 changes: 3 additions & 1 deletion azure-pipelines-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ pr:
- master
paths:
exclude:
- '*.md'
- '*release-please*'
- '**/*.md'
- '.github/'
- 'azure-pipelines-release.yml'
- 'azure-pipelines-test.yml'
- 'docker-compose*'
Expand Down
4 changes: 3 additions & 1 deletion azure-pipelines-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ trigger:
- master
paths:
exclude:
- README.md
- '*release-please*'
- '**/*.md'
- '.github/'

# Pull request (PR) triggers cause a pipeline to run whenever a pull request is
# opened with one of the specified target branches, or when updates are made to
Expand Down
13 changes: 13 additions & 0 deletions release-please-config.json
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"
]
}

0 comments on commit 5c591d8

Please sign in to comment.