travis-ci-encrypt
v1.0.7
Published
a node.js travis-ci encrypt cli
Downloads
18
Readme
travis-ci-encrypt
a node.js travis-ci encrypt cli
why
because when we use travis encrypt SOMEVAR="secretvalue" --add
that will remove comments in .travis.yml
but i wanna keep
install
npm install -g travis-ci-encrypt
usage
npx travis-ci-encrypt -k SOMEVAR -v secretvalue --add
demo
import { travisEncrypt } from 'travis-ci-encrypt';
travisEncrypt('key', 'value', {
// binPath: 'C:\\Ruby24-x64\\bin\\travis.bat',
addToConf: true,
outputFile: './4.yml',
})
.tap(function (ls)
{
console.dir(ls);
})
.catch(function (e)
{
// console.error(e.message);
console.error(e);
})
;