Skip to content

Commit

Permalink
Merge pull request #127 from alexlafroscia/simplify-release
Browse files Browse the repository at this point in the history
Simplify release process
  • Loading branch information
alexlafroscia authored Nov 4, 2018
2 parents c1e129b + 6fd857a commit 42d47df
Show file tree
Hide file tree
Showing 3 changed files with 372 additions and 1,895 deletions.
10 changes: 3 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ jobs:
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=fastboot-addon-tests

- stage: 'release'
name: 'Publish to NPM'
script: yarn semantic-release
if: branch = master AND env(TRAVIS_PULL_REQUEST) = false
- name: 'Deploy Addon Docs'
script: yarn ember deploy production
if: (branch = master OR env(TRAVIS_TAG) is present) AND env(TRAVIS_PULL_REQUEST) = false
- stage: deploy
if: (branch = master or tag is present) and type = push
script: node_modules/.bin/ember deploy production

script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
27 changes: 6 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "ember test",
"test:all": "ember try:each",
"prepublishOnly": "ember ts:precompile",
"postpublish": "ember ts:clean"
"postpublish": "ember ts:clean",
"release": "standard-version"
},
"main": "index.js",
"homepage": "https://alexlafroscia.github.io/ember-steps",
Expand All @@ -23,9 +24,6 @@
"@commitlint/travis-cli": "^6.2.0",
"@ember/optional-features": "^0.6.3",
"@ember/test-helpers": "^0.7.18",
"@semantic-release/git": "^7.0.4",
"@semantic-release/github": "^5.0.6",
"@semantic-release/npm": "^5.0.4",
"@types/ember": "^3.0.24",
"@types/ember-qunit": "^3.4.2",
"@types/ember-test-helpers": "^1.0.3",
Expand Down Expand Up @@ -80,7 +78,7 @@
"postcss-nested": "^3.0.0",
"prettier": "^1.12.1",
"qunit-dom": "^0.8.0",
"semantic-release": "^15.9.17",
"standard-version": "^4.4.0",
"testdouble": "^2.0.0",
"travis-deploy-once": "^5.0.0",
"typescript": "^3.1.3",
Expand All @@ -100,7 +98,9 @@
"@types/rsvp": "^4.0.2",
"ember-css-modules/broccoli-postcss": "^3.5.3"
},
"keywords": ["ember-addon"],
"keywords": [
"ember-addon"
],
"repository": "https://github.com/alexlafroscia/ember-steps",
"license": "MIT",
"author": "Alex LaFroscia <[email protected]>",
Expand All @@ -112,21 +112,6 @@
"configPath": "tests/dummy/config",
"demoURL": "http://alexlafroscia.com/ember-steps/"
},
"release": {
"verifyConditions": [
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
],
"prepare": [
"@semantic-release/npm",
{
"path": "@semantic-release/git",
"message":
"chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $GIT_PARAMS"
Expand Down
Loading

0 comments on commit 42d47df

Please sign in to comment.