Skip to content

Add npm-bump action for creating PRs bumping versions of an NPM package - #192

Open
ashbork wants to merge 5 commits into
masterfrom
add-npm-bump-action
Open

Add npm-bump action for creating PRs bumping versions of an NPM package#192
ashbork wants to merge 5 commits into
masterfrom
add-npm-bump-action

Conversation

@ashbork

@ashbork ashbork commented Aug 19, 2026

Copy link
Copy Markdown

No description provided.

@ashbork
ashbork requested a review from a team as a code owner August 19, 2026 14:15
Comment thread javascript/npm-bump/action.yaml Outdated
prefix:
required: false
description: "The prefix for the release branch"
default: "release-"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

release- is quite a broad name and does not really reflect what was done on this branch. A name suggesting that this is an automatic upgrade would be better. Also, when choosing the default name, take into account the gitlint rules from the gitlint action

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intent is for this action to be used via workflow-dispatch, so it'd be semi-automatic and usually not triggered by anything else. I'm okay with changing the default, but I suppose we could also just make the prefix required and remove the problem altogether, wdyt?

Comment thread javascript/npm-bump/action.yaml Outdated
pr-title:
required: false
description: "The title for the PR. Version will be placed after this content"
default: "chore: release"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above, "release" is not what really was done

Comment thread javascript/npm-bump/action.yaml Outdated
Comment on lines +51 to +56
- name: Generate PiwikPRO access tokens
uses: PiwikPRO/github-app-token-generator@v1
id: get-token
with:
private-key: ${{ inputs.private-key }}
app-id: ${{ inputs.app-id }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if it is required. If we only plan to create a branch in the same repository as the workflow that runs this action, {{ github.token }} with additional write permissions should be sufficient. The token will be inherited from the workflow that starts this action

name: Example

on:
  workflow_dispatch:

permissions:
  contents: write # here comes magic

jobs:
  create-branch:
    runs-on: ubuntu-latest

    steps:
      - uses: PiwikPRO/actions/javascript/npm-bump@master

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, I missed that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants