cloudfoundry-services
Version:
A helper library to work with bound service in cloudfoundry
33 lines (29 loc) • 692 B
YAML
box: wercker/nodejs
# Build definition
build:
# The steps that will be executed on build
steps:
# A step that executes `npm install` command
- npm-install
- script:
name: install grunt-cli
code: |
sudo npm install -g grunt-cli
- script:
name: grunt step nodejs
code: |
grunt
deploy:
steps:
- script:
name: deploy to npm
code: |
npm set init.author.name $NPM_NAME
npm set init.author.email $NPM_EMAIL
npm set init.author.url $NPM_URL
npm adduser <<!
$NPM_USERNAME
$NPM_PASSWORD
$NPM_EMAIL
!
npm publish ./