From d35d0f9285d0d386d379c1561dde7130818e7966 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Wed, 4 Dec 2024 01:18:57 +0000 Subject: [PATCH] Update documentation to reflect changesets publish expected environment variable --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: ```