Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Fix semver v2 snapshot strategy (#46)
Browse files Browse the repository at this point in the history
Description
===========

The new semver v2 snapshot strategy doesn't get applied when the current
stage == `SNAPSHOT`. Since we want to have backwards compatibility to
switch from v1 to v2 this must be fixed

Changes
=======

* ![FIX] semver v2 snapshot strategy
  • Loading branch information
Larusso authored Dec 19, 2018
1 parent e700588 commit 7bc6c60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ final class VersionStrategies {
*/
static final SemVerStrategy SNAPSHOT = DEFAULT.copyWith(
name: 'snapshot',
stages: ['ci', 'snapshot'] as SortedSet,
stages: ['ci', 'snapshot', 'SNAPSHOT'] as SortedSet,
allowDirtyRepo: true,
createTag: false,
preReleaseStrategy: all(PreRelease.STAGE_BRANCH_NAME, Strategies.PreRelease.COUNT_COMMITS_SINCE_ANY)
Expand Down

0 comments on commit 7bc6c60

Please sign in to comment.