Skip to content

Commit

Permalink
Add changeset tag to custom publishing section of README
Browse files Browse the repository at this point in the history
  • Loading branch information
magnh committed Mar 1, 2023
1 parent 595655c commit 9b099e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ If you want to hook into when publishing should occur but have your own publishi

Note that you might need to account for things already being published in your script because a commit without any new changesets can always land on your base branch after a successful publish. In such a case you need to figure out on your own how to skip over the actual publishing logic or handle errors gracefully as most package registries won't allow you to publish over already published version.

If you need GitHub releases and Git tags, make sure to include `changeset tag` in the action publish script.

```yml
name: Release
Expand Down Expand Up @@ -155,6 +157,9 @@ jobs:
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# Include this to create GitHub releases and Git tags
# publish: yarn changeset tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 9b099e6

Please sign in to comment.