Skip to content

Commit

Permalink
chore: add rolling versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Jul 18, 2020
1 parent be17e7b commit 8e1cd59
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,21 @@ jobs:
- *build
- *test

master:
publish-dry-run:
<<: *container
steps:
- checkout
- *restore_cache
- *npm_auth
- *bolt_install
- *save_cache
- *build
- *test
- run:
name: Release (Dry Run)
command: npx rollingversions publish --dry-run

publish:
<<: *container
steps:
- checkout
Expand All @@ -56,7 +70,7 @@ jobs:
- *test
- run:
name: Release
command: bolt publish
command: npx rollingversions publish

workflows:
version: 2
Expand All @@ -69,7 +83,19 @@ workflows:
- master
master:
jobs:
- master:
filters:
branches:
only: master
- publish-dry-run:
filters:
branches:
only: master

- publish-approval:
type: approval
requires:
- publish-dry-run

- publish:
requires:
- publish-approval
filters:
branches:
only: master

0 comments on commit 8e1cd59

Please sign in to comment.