Skip to content

Make it possible to create a GH release without publishing! #422

Description

@trueberryless

Description

I'm currently struggling to create a nice CI flow because this action doesn't want to create a release when no publishing happens. I would love to use this action for versioning my website too, which unfortunately is no npm package and therefore things are very very complicated when I want to work with this action. But I love this approach and this action, so I'm gonna ask if it is possible to adapt the action, so it supports creating a release, even when no publishing happens. This would allow to create a custom GH action for deploying and this action handles the releases as soon as the deployment succeeds.

I was thinking of something like this: When the user specifically enables createGithubReleases, the action creates it as if a publish happend. I'm not sure how much of a refactor this would be for this action, but let's discuss possible solutions below!

release:
name: Releaseneeds: deploymentruns-on: ubuntu-latestoutputs:
docs: ${{ steps.changesets.outputs.hasChangesets }}steps:
- # ...
- name: Create Release Pull Requestid: changesetsuses: changesets/action@v1with:
createGithubReleases: trueenv:
GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Related Issue

changesets/changesets#849

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions