- install
npm -g install verdaccio
- configure
cat << EOF > config.yml listen: 0.0.0.0:4873 storage: ./storage auth: htpasswd: file: ./htpasswd packages: "@*/*": access: $all publish: $authenticated "**": proxy: npmjs logs: - { type: stdout, format: pretty, level: http } EOF
- run verdaccio server
verdaccio -c config.yml
- log into the verdaccio with npm
npm adduser --registry http://localhost:4873 # enter a test username, password, and email to use
Navigate to @truffle/preserve monorepo root and issue lerna publish command.
$(yarn bin)/lerna publish from-package --registry http://localhost:4873
Note. Verdaccio will store published files in the the directory where the process was started.
config.yml
htpasswd
storage
└── @truffle
├── preserve
│ ├── package.json
│ └── preserve-0.2.6.tgz
├── preserve-fs
│ ├── package.json
│ └── preserve-fs-0.2.6.tgz
├── preserve-to-buckets
│ ├── package.json
│ └── preserve-to-buckets-0.2.7.tgz
├── preserve-to-filecoin
│ ├── package.json
│ └── preserve-to-filecoin-0.2.7.tgz
└── preserve-to-ipfs
├── package.json
└── preserve-to-ipfs-0.2.7.tgz