Closed gidjin closed 1 year ago
After some more debugging and walking co-workers through the issue we found that my configuration was incorrect for changelog-types. It was giving an object instead of an array. Updating it as follows has resolved the issue. No bug but leaving this note here in case someone else has the same issue.
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: '@trussworks/react-uswds'
release-labels: 'type: release'
changelog-types: >
[
{ "type": "build", "hidden": true },
{ "type": "chore", "hidden": true },
{ "type": "ci", "hidden": true },
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "docs", "section": "Documentation & Examples" },
{ "type": "style", "hidden": true },
{ "type": "refactor", "hidden": true },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "test", "hidden": true }
]
TL;DR
Our github runners upgraded to version
2.306.0
from version2.305.0
and we started having the following error with our release please actionFailed Build example: https://github.com/trussworks/react-uswds/actions/runs/5548450381/jobs/10131440378 Working Build: https://github.com/USSF-ORBIT/ussf-portal-client/actions/runs/5512846343/jobs/10050194817 Failed Build: https://github.com/USSF-ORBIT/ussf-portal-client/actions/runs/5535147685/jobs/10101056417
Expected behavior
Release please action to run and create a release branch
Observed behavior
Workflow fails because
types.find is not a function
Action YAML
Log output
Additional information
No response