-
Notifications
You must be signed in to change notification settings - Fork 0
ci(release): automate release PRs and npm publishing #35
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
Changes from all commits
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,70 @@ | ||||||
| name: Release Please | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| branches: | ||||||
| - master | ||||||
|
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.
This workflow only runs on pushes to Useful? React with 👍 / 👎. |
||||||
| workflow_dispatch: | ||||||
|
|
||||||
| permissions: | ||||||
| contents: write | ||||||
| pull-requests: write | ||||||
| issues: write | ||||||
|
|
||||||
| concurrency: | ||||||
| group: ${{ github.workflow }}-${{ github.ref }} | ||||||
| cancel-in-progress: false | ||||||
|
|
||||||
| jobs: | ||||||
| release-please: | ||||||
| name: Prepare Release | ||||||
| runs-on: ubuntu-latest | ||||||
| timeout-minutes: 15 | ||||||
| outputs: | ||||||
| release_created: ${{ steps.release.outputs.release_created }} | ||||||
| tag_name: ${{ steps.release.outputs.tag_name }} | ||||||
|
|
||||||
| steps: | ||||||
| - name: Run release-please | ||||||
| id: release | ||||||
| uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0 | ||||||
| with: | ||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
||||||
| token: ${{ secrets.GITHUB_TOKEN }} | |
| token: ${{ secrets.RELEASE_PLEASE_TOKEN }} |
fbosch marked this conversation as resolved.
Show resolved
Hide resolved
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| ".": "0.5.10" | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
| "packages": { | ||
| ".": { | ||
| "release-type": "node", | ||
| "include-component-in-tag": false, | ||
| "include-v-in-tag": true | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The workflow only runs on pushes to
master. Other workflows in this repo run on bothmainandmaster(e.g..github/workflows/ci.yml:6-9), so releases may never be prepared if the default branch ismain. Consider addingmainhere (or otherwise aligning this list with the repo’s default/release branch).