Repository navigation
ci: release the starter with release-please #835
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
7 commits
Select commit
Hold shift + click to select a range
9befeda
ci: squash-merge bot pull requests and prefix Dependabot commits with…
aryanjasala a41ccd4
ci: cut releases of the starter with release-please
aryanjasala ab9ac5f
feat(init): give new themes release-please of their own
aryanjasala ec6e4db
docs(init): drop the note about a reusable release workflow
aryanjasala 5a194f2
ci: release only the starter itself, drop the init release feature
aryanjasala 963b963
ci: keep the starter's release config in .github/release-starter/
aryanjasala 7494fff
ci: make Dependabot updates releasable
aryanjasala 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,69 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
| "packages": { | ||
| ".": { | ||
| "release-type": "node", | ||
| "changelog-path": "CHANGELOG.md", | ||
| "include-v-in-tag": true, | ||
| "include-component-in-tag": false, | ||
| "changelog-sections": [ | ||
| { | ||
| "type": "feat", | ||
| "section": "Added" | ||
| }, | ||
| { | ||
| "type": "fix", | ||
| "section": "Fixed" | ||
| }, | ||
| { | ||
| "type": "perf", | ||
| "section": "Changed" | ||
| }, | ||
| { | ||
| "type": "revert", | ||
| "section": "Changed" | ||
| }, | ||
| { | ||
| "type": "build", | ||
| "section": "Changed" | ||
| }, | ||
| { | ||
| "type": "docs", | ||
| "section": "Documentation", | ||
| "hidden": true | ||
| }, | ||
| { | ||
| "type": "style", | ||
| "section": "Styles", | ||
| "hidden": true | ||
| }, | ||
| { | ||
| "type": "chore", | ||
| "section": "Miscellaneous", | ||
| "hidden": true | ||
| }, | ||
| { | ||
| "type": "refactor", | ||
| "section": "Code Refactoring", | ||
| "hidden": true | ||
| }, | ||
| { | ||
| "type": "test", | ||
| "section": "Tests", | ||
| "hidden": true | ||
| }, | ||
| { | ||
| "type": "ci", | ||
| "section": "Continuous Integration", | ||
| "hidden": true | ||
| } | ||
| ], | ||
| "extra-files": [ | ||
| { | ||
| "type": "generic", | ||
| "path": "style.css" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } |
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 @@ | ||
| { | ||
| ".": "2.0.0" | ||
| } |
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,31 @@ | ||
| name: PR Title Validation | ||
|
|
||
| # Pull requests are squash-merged and the PR title becomes the commit on main. release-please | ||
| # reads those subjects to pick the next version and write CHANGELOG.md, so the title has to be a | ||
| # Conventional Commit: feat -> minor, fix -> patch, a "!" after the type -> major. | ||
| # | ||
| # Not a required status check: the release pull request is opened with GITHUB_TOKEN, which | ||
| # starts no workflow runs, so this check never reports on it. | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, edited, reopened, ready_for_review] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| run: | ||
| name: Validate PR title | ||
| if: github.event.pull_request.draft == false | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: read | ||
| steps: | ||
| - name: Validate pull request title | ||
| uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 | ||
| env: | ||
| GITHUB_TOKEN: ${{ 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 |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Release (starter) | ||
|
|
||
| # release-please reads the Conventional Commit subjects squash-merged to main and keeps one | ||
| # release pull request open that bumps the version and writes CHANGELOG.md. Merging that pull | ||
| # request tags vX.Y.Z on main and publishes the GitHub release with the changelog entry as notes. | ||
| # | ||
| # The release pull request is opened with GITHUB_TOKEN, so GitHub starts no workflow runs on it | ||
| # (no tests, no PR title check). That is why neither check is a required status check. Switching | ||
| # the token below to a GitHub App token would give the release pull request its CI runs. | ||
| # | ||
| # This file releases the starter itself, from the config and manifest in .github/release-starter/. | ||
| # Init cleanup removes all of them, so projects made from the starter don't inherit them. | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| # Serialise runs so two merges in quick succession can't race on the release pull request. | ||
| concurrency: | ||
| group: release | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| release-please: | ||
| name: Release Please | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| issues: write | ||
| pull-requests: write | ||
| steps: | ||
| - name: Open or update the release pull request, or publish the release | ||
| uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 | ||
| with: | ||
| token: ${{ github.token }} | ||
| config-file: .github/release-starter/config.json | ||
| manifest-file: .github/release-starter/manifest.json |
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
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
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
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.