A simple and neat setup for a NPM Package
Credit where credit is due: Blazing Fast Tips: Publishing to NPM
- Make sure PR permissions is properly set up for actions in github settings
.npmrcwithautoInstallPeers=trueset to true was necessary for pnpm install --frozen-lockfile to runsecrets.NPM_TOKENsetup required for publish workflow to run- Make sure
"access": "public" on publishConfigis added - If 2FA is setup on NPM account account in NPM, that you disable it for write actions