Publish to npm on passing builds

This commit is contained in:
Tom Gallacher 2017-01-03 13:53:24 +00:00
parent 96df29f85b
commit a89d83f2ba
3 changed files with 10 additions and 4 deletions

View File

@ -19,6 +19,7 @@ dependencies:
- echo '{"url":"https://eu-ams-1.api.joyent.com","account":"'$SDC_ACCOUNT'","keyId":"c3:30:35:9b:85:48:73:44:31:cc:4b:2e:6a:00:16:e2","name":"eu-ams-1","curr":true}' | triton profile create -f -
- triton env --docker eu-ams-1
- mkdir -p ${CIRCLE_TEST_REPORTS}/tap-xunit/
- echo -e "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
override:
- make && make install
@ -31,6 +32,7 @@ deployment:
branch: master
commands:
- ./bin/docker-login
- make -C ui publish
- make -j2 build
- make -j2 push
- ./bin/deploy

View File

@ -48,7 +48,7 @@ build:
docker build -t quay.io/yldio/joyent-dashboard-$(NAME) .
.PHONY: push
push:
push: publish
docker push quay.io/yldio/joyent-dashboard-$(NAME)
.PHONY: clean
@ -65,3 +65,8 @@ lint:
lint-ci:
mkdir -p $(XUNIT_DIR)
-$(bindir)/eslint . --format tap | $(XUNIT) $(XUNIT_OUTPUT)-lint.xml
.PHONY: publish
publish:
npm version 0.0.1-$(CIRCLE_BUILD_NUM)
npm publish --tag alpha --access public

View File

@ -1,8 +1,7 @@
{
"name": "joyent-portal-ui",
"version": "1.0.0",
"name": "@tomgco/joyent-portal-ui",
"version": "0.0.1-1",
"license": "MPL2",
"private": true,
"main": "dist/index.js",
"scripts": {
"start": "cd docs && npm start",