1 NPM_TOKEN Add an NPM_TOKEN secret on GitHub. Get your secret key from the NPM dashboard. 2 Add a step to your action - name: Authenticate with private NPM package run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc