-
Notifications
You must be signed in to change notification settings - Fork 59
ci: migrate release automation from semantic-release to release-please #391
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2e1a95f
build: add release-please config and manifest
kgogov 0102cef
ci: replace semantic-release with release-please in release workflow
kgogov fc98615
build: remove semantic-release toolchain
kgogov a484e76
build: anchor release-please to 1.10.0 release with bootstrap-sha
kgogov 1598d5c
chore: gitignore docs/superpowers agent artifacts
kgogov c1fb784
ci: upgrade checkout/setup-node to v7 and pin CI to node 24
kgogov ff20bc4
fix: use plain v-tags (include-component-in-tag false) so release ass…
kgogov c0e6974
ci: enforce conventional PR titles for correct changelog
kgogov 8d727ef
ci: trim pr-title trigger and dedupe release build
kgogov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Validates that PR titles follow Conventional Commits, so squash-merge | ||
| # commit subjects (derived from the PR title) are parseable by release-please | ||
| # and land in the changelog. | ||
| name: Lint PR Title | ||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, edited] | ||
| permissions: | ||
| pull-requests: read | ||
| jobs: | ||
| validate-title: | ||
| name: Validate PR title | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: amannn/action-semantic-pull-request@v6 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,43 @@ | ||
| # This is a basic workflow to automate the creation of the build artifact | ||
| name: Release | ||
| # Controls when the workflow will run | ||
| on: | ||
| schedule: | ||
| - cron: "0 9 15 * *" | ||
| # Allows you to run this workflow manually from the Actions tab | ||
| push: | ||
| branches: [ master ] | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: write | ||
| issues: write | ||
| pull-requests: write | ||
| jobs: | ||
| release: | ||
| release-please: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v6 | ||
| - uses: googleapis/release-please-action@v5 | ||
| id: release | ||
| with: | ||
| node-version: 22 | ||
| - name: Install NPM dependencies | ||
| run: npm ci | ||
| - name: Run tests | ||
| run: grunt test | ||
| # Release using semantic-release if there are new semantic commits. | ||
| # The @semantic-release/git plugin commits the version bump | ||
| # (package.json, package-lock.json, app/manifest.json, CHANGELOG.md) | ||
| # directly back to master. | ||
| - name: Release | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| # Build + upload the artifact ONLY when a release was actually created | ||
| # (i.e. the Release PR was merged this run). Most pushes only refresh the | ||
| # Release PR, so release_created is false and these steps are skipped. | ||
| - uses: actions/checkout@v7 | ||
| if: ${{ steps.release.outputs.release_created }} | ||
| - uses: actions/setup-node@v7 | ||
| if: ${{ steps.release.outputs.release_created }} | ||
| with: | ||
| node-version: 24 | ||
| - name: Build distribution zip | ||
| if: ${{ steps.release.outputs.release_created }} | ||
| # --ignore-scripts skips postinstall (which itself runs tsc + grunt dist); | ||
| # we build explicitly below so the artifact isn't produced twice. | ||
| run: | | ||
| npm ci --ignore-scripts | ||
| npm run generate:typescript | ||
| grunt dist | ||
| - name: Upload release asset | ||
| if: ${{ steps.release.outputs.release_created }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: npx semantic-release | ||
| run: | | ||
| cp package/ui5inspector.zip "ui5inspector-${{ steps.release.outputs.tag_name }}.zip" | ||
| gh release upload "${{ steps.release.outputs.tag_name }}" \ | ||
| "ui5inspector-${{ steps.release.outputs.tag_name }}.zip" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ CLAUDE.md | |
| .scratch/ | ||
| docs/adr/ | ||
| docs/agents/ | ||
| docs/superpowers/ | ||
| CONTEXT.md | ||
| prompt.md | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| ".": "1.10.0" | ||
| } |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.