From b96b15324f85fc8ccf1fc94d09797c3dabdcc59a Mon Sep 17 00:00:00 2001 From: tingyu22 <75769039+tingyu22@users.noreply.github.com> Date: Fri, 5 Feb 2021 10:11:15 +0800 Subject: [PATCH] better understand why set env NODE_AUTH_TOKEN . and what used for didn't see anywhere explain that, make use duplicate use another token finish publish work --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 581bf7a5..bd3dc281 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ jobs: - run: npm test ``` -Publish to npmjs and GPR with npm: +Publish to npmjs and GPR with npm, env `NODE_AUTH_TOKEN` used to auth `npm.pkg.github.com` : ```yaml steps: - uses: actions/checkout@v2 @@ -154,7 +154,7 @@ steps: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` -Publish to npmjs and GPR with yarn: +Publish to npmjs and GPR with yarn, env `NODE_AUTH_TOKEN` used to auth `npm.pkg.github.com`: ```yaml steps: - uses: actions/checkout@v2 @@ -174,7 +174,7 @@ steps: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` -Use private packages: +Use private packages, env `NODE_AUTH_TOKEN` used to auth `npm.pkg.github.com`: ```yaml steps: - uses: actions/checkout@v2