{ "type": "JavaScript", "ci": "circleci", "slug": "twilio/twilio-voice.js", "env": { "GH_REF": "github.com/twilio/twilio-voice.js.git" }, "plans": { "release": { "env": { "GIT_USER_NAME": "twilio-vblocks-ci", "GIT_USER_EMAIL": "svc.vblocks-ci@twilio.com" }, "commands": [ "node ./node_modules/.bin/release --bump ${CURRENT_VERSION} ${RELEASE_VERSION}", "git config user.name \"${GIT_USER_NAME}\"", "git config user.email \"${GIT_USER_EMAIL}\"", "git rm -rf --ignore-unmatch dist es5 docs lib/twilio/constants.js", "npm run build:release", "git add package.json", "git add -f dist es5 docs lib/twilio/constants.js", "git commit -nm \"${RELEASE_VERSION}\"", "git tag ${RELEASE_VERSION}", "git remote set-url origin \"https://${GH_TOKEN}@${GH_REF}\"", "git rebase HEAD ${BRANCH}", "git push origin ${BRANCH} --tags &> /dev/null && echo \"Push to origin successful\" || (echo \"Push to origin failed\" 1>&2 && exit 1)", "git fetch --all", "git checkout ${RELEASE_VERSION}", "git rm -rf docs", "git commit -nm \"Preparing gh-pages\"", "git subtree add --prefix docs origin gh-pages", "npm run docs:ts", "git stage docs -f", "git commit -nm \"${RELEASE_VERSION}\"", "git subtree push --prefix docs origin gh-pages", "git checkout ${BRANCH}", "git reset --hard origin/${BRANCH}" ] }, "development": { "commands": [ "node ./node_modules/.bin/release --bump ${RELEASE_VERSION} ${DEVELOPMENT_VERSION}", "git rm -rf dist es5 docs lib/twilio/constants.js", "npm run clean", "npm run docs:clean", "git add package.json", "git commit -nm \"${DEVELOPMENT_VERSION}\"", "git push origin ${BRANCH}" ] }, "publish": { "commands": [ "git checkout ${RELEASE_VERSION}", "echo \"//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}\" >~/.npmrc", "npm publish" ] } } }