@@ -29,9 +29,13 @@ You should use this action in a workflow immediately after checkout. The followi
29
29
- ` tags ` : reverse sorted git tags in semver format
30
30
- ` nextVersion ` : calculated next version (see table above)
31
31
32
+ For inputs, the following options are available:
33
+
34
+ - ` versionPrefix ` : adds a string to the tag.
35
+
32
36
Example yml:
33
37
34
- ```
38
+ ``` yaml
35
39
- uses : actions/checkout@v2
36
40
with :
37
41
fetch-depth : 0
@@ -62,15 +66,18 @@ Run the tests
62
66
` ` ` bash
63
67
$ npm test
64
68
65
- PASS __tests__/main.test.ts
66
- ✓ VPE Versioning # 1 (2ms)
67
- ✓ VPE Versioning # 2 (1ms)
68
- ✓ VPE Versioning # 3
69
- ✓ VPE Versioning # 4
70
- ✓ VPE Versioning # 5 (1ms)
71
- ✓ VPE Versioning # 6
72
- ✓ VPE Versioning # 7
73
- ✓ VPE Versioning # 8
74
-
75
- ...
69
+ PASS __tests__/main.test.ts
70
+ √ should use version from package.json if no tag is available (2ms)
71
+ √ should bump version if same tag is available
72
+ √ should bump version if same tag is available but prefixed
73
+ √ should bump version if same tag is available but not prefixed (1ms)
74
+ √ should use bump latest pre-release tag if multiple tags are available
75
+ √ should use bump latest tag if multiple tags are available sorted the other way around
76
+ √ should use bump latest tag if one tag was skipped (1ms)
77
+ √ should use major version from major package.json if no tag matched
78
+ √ should use pre-release version from pre-release package.json if no tag matched
79
+ √ should bump final version if tag already exists and ends with 0
80
+ √ should throw an error if final version is already tagged and does not end with 0 (9ms)
81
+ √ should throw an error if pre-release version is already tagged and does not end with 0
82
+ √ should throw an error for wrong versions (2ms)
76
83
` ` `
0 commit comments