Skip to content
/ changeset-action Public template

Automate adding a changeset for simple pull requests

License

Notifications You must be signed in to change notification settings

generates/changeset-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Changeset Action

Automate adding a changeset for simple pull requests

About

This action works with the changesets versioning tool to allow you to automate the creation of changesets typically for automated code creation tools like renovate or dependabot that keep your dependencies up-to-date. You can also use it to manually add a changeset by providing inputs without having to use the changesets CLI.

Usage

See the action being used in this repository.

name: Changeset
on:
  pull_request:
    types: [labeled]
jobs:
  changeset:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Changeset
        uses: generates/changeset-action@v3.0.0
      - name: Commit Changes
        uses: generates/commit-action@v1.0.1
        with:
          token: ${{ secrets.GH_PAT }}

License

Hippocratic License - See LICENSE

 

Created by Ian Walter