Skip to content

Commit

Permalink
Merge pull request #477 from nla/ci/upgrade-release-please-action
Browse files Browse the repository at this point in the history
ci: upgrade release-please action
  • Loading branch information
yetti authored Jun 25, 2024
2 parents d5a3e48 + 5a9e9a9 commit e918df1
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 25 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
# This workflow creates a release pull request whenever a change is pushed to 'main'.
# When the release pull request is merged into main, it will automatically create and tag a new
# When the release pull request is merged into 'main', it will automatically create and tag a new
# release version.

name: Release automation
on:
push:
branches: [release]
branches:
- "main"
- "hotfix/*"
jobs:
release-please:
permissions:
contents: write
pull-requests: write
name: Create a new release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GH_TOKEN }}
default-branch: release
release-type: ruby
package-name: nla-arclight
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
include-v-in-tag: false
changelog-types: >-
[
{"type":"feat","section":"Features","hidden":false},
{"type":"fix","section":"Bug Fixes","hidden":false},
{"type":"perf","section":"Performance Improvements","hidden":false},
{"type":"revert","section":"Reverts","hidden":false},
{"type":"docs","section":"Documentation","hidden":false},
{"type":"style","section":"Styles","hidden":false},
{"type":"chore","section":"Miscellaneous","hidden":false},
{"type":"refactor","section":"Code Refactoring","hidden":false},
{"type":"test","section":"Tests","hidden":false},
{"type":"build","section":"Build System","hidden":false},
{"type":"ci","section":"Continuous Integration","hidden":false}
]
version-file: "config/application.rb"
token: ${{ secrets.BLACKLIGHT_RELEASE_TOKEN }}
target-branch: ${{ github.ref_name }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.2.0"
}
72 changes: 72 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"release-type": "ruby",
"bootstrap-sha": "80e59da25933d0044054b2d849065a12f1869e04",
"last-release-sha": "80e59da25933d0044054b2d849065a12f1869e04",
"packages": {
".": {
"release-type": "ruby",
"package-name": "nla-arclight",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"include-v-in-tag": false,
"version-file": "config/application.rb",
"changelog-sections": [
{
"type": "feat",
"section": "Features",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes",
"hidden": false
},
{
"type": "perf",
"section": "Performance Improvements",
"hidden": false
},
{
"type": "revert",
"section": "Reverts",
"hidden": false
},
{
"type": "docs",
"section": "Documentation",
"hidden": false
},
{
"type": "style",
"section": "Styles",
"hidden": false
},
{
"type": "chore",
"section": "Miscellaneous",
"hidden": false
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": false
},
{
"type": "test",
"section": "Tests",
"hidden": false
},
{
"type": "build",
"section": "Build System",
"hidden": false
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": false
}
]
}
}
}

0 comments on commit e918df1

Please sign in to comment.