When trying to deploy the package to NPM however, the following error arises:
2.34s
dpl.1
Installing deploy dependencies
Fetching: dpl-npm-1.10.13.gem (100%)
Successfully installed dpl-npm-1.10.13
1 gem installed
dpl.2
Preparing deploy
NPM version: 6.12.0
Authenticated with email felix@pojtinger.com and API key ****************ypt]
dpl.3
Deploying application
NPM API key format changed recently. If your deployment fails, check your API key in ~/.npmrc.
http://docs.travis-ci.com/user/deployment/npm/
~/.npmrc size: 48
env: ‘to’: No such file or directory
Done. Your build exited with 0.
Running npm run build && npm publish locally works.
Since an API key isn’t supposed to have any spaces, not to mention prepositions, @pojntfx, are you sure you have encrypted the right value, and with the right key? (You are using travis-ci.com so you need to pass --pro to cli commands as per the link below.) Try encrypting it again as per https://docs.travis-ci.com/user/environment-variables/#encrypting-environment-variables (for this particular case, you need to encrypt just the raw value, without “MY_SECRET_ENV=”).