Skip to content

Commit

Permalink
chore: Switch to release-please 13 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Apr 20, 2022
1 parent 039f126 commit 450fb69
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-please-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- opened
jobs:
release-please-label:
if: "${{ github.event.sender.login == 'yoshi-code-bot' && startsWith(github.event.pull_request.title, 'chore: release ') }}"
if: "${{ github.event.sender.login == 'yoshi-code-bot' && startsWith(github.event.pull_request.title, 'chore(main): release ') }}"
runs-on: ubuntu-latest
steps:
- name: ReleaseLabel
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release-Please
on:
schedule:
- cron: '07 7 * * *'
- cron: '37 10 * * *'
workflow_dispatch:
inputs:
gem:
Expand All @@ -21,18 +21,20 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Ruby 2.7
- name: Install Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
- name: Install NodeJS 12.x
ruby-version: "3.0"
- name: Install NodeJS 16.x
uses: actions/setup-node@v3
with:
node-version: "12.x"
node-version: "16.x"
- name: Install tools
run: "gem install --no-document toys && npm install release-please"
- name: execute
run: |
toys release please -v --fork \
toys release manifest -v \
--fork --skip-labeling \
--github-event-name=${{ github.event_name }} \
${{ github.event.inputs.args }} -- ${{ github.event.inputs.gem }}
${{ github.event.inputs.args }} \
-- ${{ github.event.inputs.gem }}
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.25.2"
}
19 changes: 19 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"include-component-in-tag": true,
"include-v-in-tag": true,
"prerelease": false,
"release-type": "ruby-yoshi",
"skip-github-release": false,
"separate-pull-requests": true,
"tag-separator": "/",
"sequential-calls": true,
"packages": {
".": {
"component": "google-style",
"version-file": "lib/google/style/version.rb"
}
}
}

0 comments on commit 450fb69

Please sign in to comment.