1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

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 - - 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 - triton env --docker eu-ams-1
- mkdir -p ${CIRCLE_TEST_REPORTS}/tap-xunit/ - mkdir -p ${CIRCLE_TEST_REPORTS}/tap-xunit/
- echo -e "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
override: override:
- make && make install - make && make install
@ -31,6 +32,7 @@ deployment:
branch: master branch: master
commands: commands:
- ./bin/docker-login - ./bin/docker-login
- make -C ui publish
- make -j2 build - make -j2 build
- make -j2 push - make -j2 push
- ./bin/deploy - ./bin/deploy

View File

@ -48,7 +48,7 @@ build:
docker build -t quay.io/yldio/joyent-dashboard-$(NAME) . docker build -t quay.io/yldio/joyent-dashboard-$(NAME) .
.PHONY: push .PHONY: push
push: push: publish
docker push quay.io/yldio/joyent-dashboard-$(NAME) docker push quay.io/yldio/joyent-dashboard-$(NAME)
.PHONY: clean .PHONY: clean
@ -65,3 +65,8 @@ lint:
lint-ci: lint-ci:
mkdir -p $(XUNIT_DIR) mkdir -p $(XUNIT_DIR)
-$(bindir)/eslint . --format tap | $(XUNIT) $(XUNIT_OUTPUT)-lint.xml -$(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", "name": "@tomgco/joyent-portal-ui",
"version": "1.0.0", "version": "0.0.1-1",
"license": "MPL2", "license": "MPL2",
"private": true,
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"start": "cd docs && npm start", "start": "cd docs && npm start",