From 99d478d07a5f34b2dfa20ee94c8c2eae97482ddc Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Wed, 3 Jan 2018 14:28:39 -0800 Subject: [PATCH] build(apm): add semantic-release configuration Utilize the new shared config for APM for `semantic-release` in order to automate deployment from CI. Notes: Uses `travis-deploy-once` instead of Build Stages since we would need to reconfigure Atom in the deploy job if using Build Stages. --- .travis.yml | 10 ++++++++-- package.json | 11 +++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0da31d2..a50b453 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ node_js: - "8" env: + global: + secure: "ixSEYjGpVSOPGu0t58ZWOZ/FudTrOa1vkV5MxHdkRMyDi2S25naE7cQukxaFwQk/Mn1bk+LJl6cyDT6wrd8BeNdWVOTy/+ZZB2mMa5oYGN1eGFG+p9JAshCLjfNmPj6gz6Ubo5iuKXkBjckvCFj2DQgvgBHRn2mP3+coGLn/9rfChSU0VbyTSx0gHp7+G4VOvs9sgG5tkxLuc1ItHJuDoeZlGW4R660LqY+HDRZRFBcJft2+zPMWOGbOMEMHnNBSOfyfaeAeHulJRd8TJ05/IAyGsoU8biXFxCAjveSSMT6IWAOkBdpaDVacDg0P7ClYvxup0eAImHlOXaoSaMUWLu4pvSk+6FTG2qauRT+t0igeWNuNdu5X4kmdL50vDvykLW88ln1pJ8hflEeH7sV8aTvStklXgSoi5PaCtpKLlDp3HXw9tTgV7iC+afVm2gpJUL7RB7yAInptUci+Bnq7FqVpGXUFlLbIP4VbB8sApI0ZaarbpQVMsP6N3N8pHtOEPMu0PepRIbqnf/cnRKxe1GdI0VU2JTMYgHq+OqFou4EuQKtNW+6552TiXY8Johl3vdJQWCbby88YfPkx1hRETAoVA/fUpkeO3lo4A0PIFzdQeG+8ZyOG4Seg3kvA9Lc8d3L5yEQtdVJR0vWWds7Va++NP1O3bx3eTGBQcBqN+K4=" + secure: "VWt+R8fkwoezX+5WdB5Bmb09fIGvOCcwxdYhxdkMQlpWbPwlZoqw3OYY/9/aLGIAEzpYxSpKWvA+McMRmvmzQWRknWmhwwt2+MbQkfpy9k8rpoJmGQsBEWmcC7aQ/38fyDUgx5vxWuADyCVa0dzm6MqgL3E9VlhJaNCnJfsA+oadN6EG5S5sYRTQdBiarZ+GEqzcS50Nii/HuHUT881EXKPcMkSuefyzpzmEbVzwwECG2Huq1po0KErY1Ud4QgQyyI8JG/JaXIoAKloACfkL+oMbInfi0/4/hL4kOUWOOglNc1hwn+C1bTwsndyTaqgAdbIzLbid7acww/Mb0dufCnf4ddF1fQTCYNuaGLe/WuqszQHUMn1/2uxE9hjJY/Q0pAPXmsjV/ju3nEvRNZ6t2ABYSiXkN09Ro6R7DohR18Pdcj5b1Vb0kh8jDg/ljd368FQMN9pvw3Gj7qi3AEAyyDqLgdvm6ikyuQKiOgqwDwsbSCqgBAYZJgRQnCf7h2Wah1zY7djIBG+01mtLbPpcOh3D2mxSg0wmg4E9wMpJwYxsmHy5YvP+wTKinQWk1oPRgUtgEK4Z0m1mHsilcS0dZDDyLf6UxzCqvma/r7eJUV1XrsfSypen1yCyWYdT2SrB7m6tyXp4PjN2htKpemjiY57yHQxSOWWglDDeK6i7xy0=" matrix: - ATOM_CHANNEL=stable - ATOM_CHANNEL=beta @@ -14,13 +17,16 @@ os: before_script: - commitlint-travis +after_success: + - npm run travis-deploy-once "npm run semantic-release" + ### Generic setup follows ### dist: trusty script: - curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh - chmod u+x build-package.sh - - ./build-package.sh + - "./build-package.sh" notifications: email: @@ -30,7 +36,7 @@ notifications: branches: only: - master - - /^greenkeeper/.*$/ + - "/^greenkeeper/.*$/" git: depth: 10 diff --git a/package.json b/package.json index 49b1a85..81c5b67 100644 --- a/package.json +++ b/package.json @@ -45,15 +45,22 @@ "devDependencies": { "@commitlint/config-conventional": "^5.2.3", "@commitlint/travis-cli": "^5.2.8", + "@semantic-release/apm-config": "^1.0.2", "commitlint": "^5.2.8", "eslint": "^4.14.0", "eslint-config-airbnb-base": "^12.1.0", "eslint-plugin-import": "^2.8.0", "husky": "^0.14.3", - "jasmine-fix": "^1.3.1" + "jasmine-fix": "^1.3.1", + "semantic-release": "^12.1.0" }, "scripts": { - "commitmsg": "commitlint -e $GIT_PARAMS" + "commitmsg": "commitlint -e $GIT_PARAMS", + "semantic-release": "semantic-release", + "travis-deploy-once": "travis-deploy-once" + }, + "release": { + "extends": "@semantic-release/apm-config" }, "eslintConfig": { "rules": {