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
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!Related Issue
changesets/changesets#849