Skip to content

Commit

Permalink
Update documentation to reflect changesets publish expected environme…
Browse files Browse the repository at this point in the history
…nt variable
  • Loading branch information
EduardoAC committed Dec 4, 2024
1 parent 31ff97e commit d35d0f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,16 @@ jobs:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Expected env variable by changeset publish
- name: Send a Slack notification if a publish happens
if: steps.changesets.outputs.published == 'true'
# You can do something when a publish happens.
run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"
```

**Note**: Consider when you are using the `changesets/action` in combination with `changeset publish`, you are required to use `NODE_AUTH_TOKEN` instead of `NPM_TOKEN` environment variable.

By default the GitHub Action creates a `.npmrc` file with the following content:

```
Expand Down

0 comments on commit d35d0f9

Please sign in to comment.