Skip to content

Commit

Permalink
feat(update-please): add target input parameter (default to minor) (#29)
Browse files Browse the repository at this point in the history
* feat(update-please): add target input parameter (default to minor)

* feat(update-please): list the target in the step name

* docs(update-please): remove 'greatest' - it's just confusing

* fix(update-please): use 'minor' if not specified
  • Loading branch information
aimeerivers authored May 14, 2024
1 parent 5457191 commit 8e5d65e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
type: string
description: A comma-separated list of GitHub teams to request a review from.
required: false
target:
type: string
description: Target versions to upgrade to. For example, "latest", "minor" or "patch".
default: minor
secrets:
HEDIA_BOT_GITHUB_PAT:
description: Needed to create the PR
Expand Down Expand Up @@ -45,8 +49,8 @@ jobs:
- name: Install npm-check-updates
run: npm install -g npm-check-updates

- name: Update minor and patch dependencies
run: ncu -t minor -u
- name: Update ${{ inputs.target || 'minor' }} dependencies
run: ncu -t ${{ inputs.target || 'minor' }} -u
env:
NODE_AUTH_TOKEN: ${{ secrets.READONLY_NPM_TOKEN }}

Expand Down

0 comments on commit 8e5d65e

Please sign in to comment.