Configure CircleCI with an environment variable
$ npm install --save circleci-env
var env = require('circleci-env')
env.set({
username: 'bendrucker',
project: 'circleci-aws',
circle_token: token,
name: 'FOO',
value: 'BAR'
})
.then(console.log)
// #=> {name: 'FOO', value: 'xxxxR'}
Gets, sets, or removes a new environment variable using the provided data.
Required
Type: object
An object that always must contain username
, project
, circle_token
, and name
(the key name), plus value
when calling set
.
MIT © Ben Drucker