diff --git a/.github/workflows/check-npm-token-permissions.yml b/.github/workflows/check-npm-token-permissions.yml index 34af35453..f1abb9501 100644 --- a/.github/workflows/check-npm-token-permissions.yml +++ b/.github/workflows/check-npm-token-permissions.yml @@ -16,11 +16,14 @@ jobs: with: node-version: 18 registry-url: 'https://registry.npmjs.org/' + - name: Configure npm authentication run: | echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + - run: npm whoami --registry=https://registry.npmjs.org/ || echo "Not authenticated" + - name: List Packages I can access run: | npm access list packages