diff --git a/README.md b/README.md index cc7f703b..c2411d99 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ 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' @@ -103,6 +103,8 @@ jobs: 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: ```