Skip to content

Commit

Permalink
ci(release-please): Add release-please setup
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Mar 12, 2024
1 parent dfbd590 commit 6f066f3
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 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 @@
name: release-please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
pull-request:
runs-on: ubuntu-22.04
outputs:
releases_created: ${{steps.release.outputs.releases_created}}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{secrets.GH_OPENUI5BOT}}
publish-package:
needs: pull-request
if: ${{needs.pull-request.outputs.releases_created}}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js LTS 18.x
uses: actions/setup-node@v4
with:
node-version: 21.x
- name: Publish to NPM
env:
NPM_TOKEN: ${{secrets.NPM_UI5BOT}}
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ./.npmrc
npm publish --access public
61 changes: 61 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"pull-request-header": ":tractor: New release prepared",
"pull-request-title-pattern": "release: v${version}",
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "docs",
"section": "Documentation",
"hidden": true
},
{
"type": "style",
"section": "Styles",
"hidden": true
},
{
"type": "refactor",
"section": "Code Refactoring",
"hidden": true
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Automation",
"hidden": true
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
},
{
"type": "release",
"section": "Release",
"hidden": true
}
]
}

0 comments on commit 6f066f3

Please sign in to comment.