Skip to content

Publishing Software

Binary Executables

CLI

To publish a binary from the Valist CLI create a new valist.yml within your project folder containing one of the supported binary project types binary or go. Or, run valist init to generate a new valist.yaml.

type: go
org: acme-co
repo: go-example
tag: 0.1.6-rc.0
meta: README.md
build: go build -o ./dist/hello src/main.go 
out: dist/hello
valist publish

Example Go Project

NPM Packages

CLI

To publish an NPM package from the Valist CLI, create a new package.json with the name structured as @orgName/repoName and the version as the current version to be published.

{
  "name": "@acme-co/npm-example",
  "version": "0.0.1-rc.0",
  "description": "",
  "main": "dist/index.js",
  "scripts": {
    "build": "tsc",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "ACME",
  "license": "MIT",
  "dependencies": {
    "typescript": "^4.3.4"
  }
}

In a new terminal window start the valist daemon

valist daemon

Now just publish to the registry using the npm publish command and the registry flag!

npm publish --registry=http://localhost:9000/api/npm

Example NPM Project