From 38193c37f6e570907eb8c7df02a9a41714eba509 Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Wed, 4 Oct 2023 00:00:05 +0200 Subject: [PATCH] Add `NPM_TOKEN` env variable (github secret) to example in docs (#1042) --- docs/ci.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ci.md b/docs/ci.md index e00c7482..1edad8ee 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -39,7 +39,7 @@ Replace `[user]` and `[project]` with the actual values. ## GitHub Actions To run release-it from a GitHub Action, here's an example job (fragment) to configure a Git user (to push the release -commit), and expose the `GITHUB_TOKEN` for the GitHub Release: +commit), and expose `NPM_TOKEN` for publishing to the npm registry and `GITHUB_TOKEN` for the GitHub Release: ```yaml jobs: @@ -56,6 +56,7 @@ jobs: - run: npm install - run: npm run release env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ```