Skip to content

Commit

Permalink
add npm whoami to publish-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenzie-grimes-noaa committed Nov 7, 2024
1 parent 02714b1 commit 87b7860
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
# Setup .npmrc file to publish to GitHub Packages
# Note that the secrets.GHCR_PAT is a GitHub Personal Access Token and is defined
# in the idsse-muppet's repository's secrets settings
- name: Create .npmrc file
run: |
echo 'registry=https://registry.npmjs.org/' > .npmrc
echo '@noaa-gsl:registry=https://npm.pkg.github.com/' >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GHCR_PAT }}" >> .npmrc
# - name: Create .npmrc file
# run: |
# echo 'registry=https://registry.npmjs.org/' > .npmrc
# echo '@noaa-gsl:registry=https://npm.pkg.github.com/' >> .npmrc
# echo "//npm.pkg.github.com/:_authToken=${{ secrets.GHCR_PAT }}" >> .npmrc

- name: Login to GitHub NPM registry-url
run: npm login --registry=https://npm.pkg.github.com/ --scope=@NOAA-GSL --auth-type=legacy
- name: Check GitHub login status
run: npm whoami --registry=https://npm.pkg.github.com

- name: Install node
uses: actions/setup-node@v4
Expand Down

0 comments on commit 87b7860

Please sign in to comment.