From 9636ecd1f2dda842ecddb94125ecc3d914888c2d Mon Sep 17 00:00:00 2001 From: Mieszko Grodzicki Date: Sun, 26 Feb 2023 14:25:42 +0100 Subject: [PATCH] Explain user and email in npm-cli-login (#15) --- .github/workflows/test-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 7803b4c..7cac870 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -17,9 +17,11 @@ jobs: - name: Install npm-cli-login run: npm install -g npm-cli-login - name: Login to GitHub npm registry + # Both username and email address are irrelevant here, but they must be + # specified because otherwise npm-cli-login fails. run: | npm-cli-login -s @actions-rs -r https://npm.pkg.github.com \ - -u $ -p ${{ secrets.GITHUB_TOKEN }} -e test@example.com + -u does_not_matter -p ${{ secrets.GITHUB_TOKEN }} -e does_not_m@ter.com - name: Install dependencies run: npm ci - name: Rebuild the action