Explain user and email in npm-cli-login (#15)

This commit is contained in:
Mieszko Grodzicki 2023-02-26 14:25:42 +01:00 committed by Predrag Gruevski
parent 88e90a8d87
commit 9636ecd1f2

View file

@ -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