Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
fix(ci): Test CI Release
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinisaacson committed Dec 14, 2018
1 parent a87a84a commit 1853727
Show file tree
Hide file tree
Showing 3 changed files with 2,743 additions and 66 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ jobs:
name: Run tests
command: yarn test

publish:
<<: *defaults
steps:
- checkout
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- restore_cache:
name: Restore node modules
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
# Run semantic-release after all the above is set.
- run:
name: Publish to NPM
command: yarn ci:publish

workflows:
version: 2
test_and_release:
Expand All @@ -53,3 +69,9 @@ workflows:
- tests:
requires:
- setup
- publish:
requires:
- tests
filters:
branches:
only: master
21 changes: 19 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,36 @@
"test": "ava",
"watch": "ava --watch",
"coverage": "nyc ava",
"shipit": "np"
"ci:publish": "yarn semantic-release",
"semantic-release": "semantic-release"
},
"standard": {
"parser": "babel-eslint"
},
"url": "https://github.com/infinitered/ignite-redux-persist",
"repository": "infinitered/ignite-redux-persist",
"devDependencies": {
"@semantic-release/git": "^7.0.5",
"ava": "^0.18.2",
"babel-eslint": "^7.1.1",
"np": "^2.12.0",
"nyc": "^10.1.2",
"semantic-release": "^15.12.5",
"sinon": "^1.17.7",
"standard": "^8.6.0"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": "package.json",
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
}
Loading

0 comments on commit 1853727

Please sign in to comment.