-
Notifications
You must be signed in to change notification settings - Fork 76
ci(release-please): Release please single PR #1176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 10 commits
cc47ddc
c4a8080
b0f6de9
1d538cf
336eec3
3113d05
cb44e81
d5c901e
e1a17d2
bf4e402
81e3bc6
f5ac61b
d4b8f4c
3f35fe1
c182049
e6bba15
d67b4a5
24f2e73
f63a6c1
77d044e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Release Please | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| release-please: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Node.js LTS | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version: 24.x | ||
|
|
||
| - name: Run Release Please to update PRs and create releases | ||
| uses: googleapis/release-please-action@v4 | ||
| id: release | ||
| with: | ||
| token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | ||
|
|
||
| publish-packages: | ||
| runs-on: ubuntu-24.04 | ||
| needs: release-please | ||
| if: needs.release-please.outputs.releases_created == 'true' | ||
| strategy: | ||
| matrix: | ||
| package: [logger, fs, builder, server, project, cli] | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Node.js LTS | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version: 24.x | ||
|
|
||
| - name: Install and publish ${{ matrix.package }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Special handling for the CLI package is required, where the shrinkwrap needs to be updated/created after all dependencies have been released. Should this be done in a separate PR?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! I have updated the action so that it:
As per my research this is the approach many monorepos are wokring. Lerna, for example |
||
| run: | | ||
| cd packages/${{ matrix.package }} | ||
| echo "🚀 Publishing @ui5/${{ matrix.package }}" | ||
|
|
||
| # TODO: Uncomment when ready to publish | ||
| # npm ci | ||
| # npm publish --access public | ||
d3xter666 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "packages/logger": "4.0.2", | ||
d3xter666 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "packages/fs": "4.0.2", | ||
| "packages/builder": "4.0.11", | ||
| "packages/server": "4.0.7", | ||
| "packages/project": "4.0.6", | ||
| "packages/cli": "4.0.26" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
| "packages": { | ||
| "packages/logger": { | ||
| "component": "logger" | ||
| }, | ||
| "packages/fs": { | ||
| "component": "fs" | ||
| }, | ||
| "packages/builder": { | ||
| "component": "builder" | ||
| }, | ||
| "packages/server": { | ||
| "component": "server" | ||
| }, | ||
| "packages/project": { | ||
| "component": "project" | ||
| }, | ||
| "packages/cli": { | ||
| "component": "cli" | ||
| } | ||
| }, | ||
| "release-type": "node", | ||
| "always-update": true, | ||
| "pull-request-header": ":tractor: New release prepared", | ||
| "pull-request-title-pattern": "release: UI5 CLI packages", | ||
| "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 | ||
| } | ||
| ] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.