-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide
tagFormat
configuration
- Loading branch information
1 parent
02e7409
commit c405454
Showing
6 changed files
with
96 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,10 +199,19 @@ Note, [npm-package-name charset](https://www.npmjs.com/package/validate-npm-pack | |
'2022.6.13-examplecom.v1.0.0.ZXhhbXBsZS5jb20-f1' | ||
// date name ver b64 format | ||
``` | ||
Anyway, it's still possible to override the default config by `tagFormat` option: | ||
| tagFormat | Example | | ||
|-----------|------------------------------------------------------| | ||
| f0 | 2022.6.22-qiwi.pijma-native.v1.0.0-beta.0+foo.bar-f0 | | ||
| f1 | 2022.6.13-examplecom.v1.0.0.ZXhhbXBsZS5jb20-f1 | | ||
| lerna | @qiwi/[email protected] | | ||
| pure | 1.2.3-my.package | | ||
### Meta | ||
Each release stores its result into the `meta` branch. | ||
Each release pushes its result to the `meta` branch. | ||
`2022-6-26-semrel-extra-zxbr-test-c-1-3-1-f0.json` | ||
```json | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,18 +160,25 @@ test('formatTag() / parseTag()', () => { | |
version: '1.1.12', | ||
format: 'lerna', | ||
ref: '@qiwi/[email protected]' | ||
}, | ||
true | ||
} | ||
], | ||
[ | ||
'1.2.3-my.package', | ||
{ | ||
name: '@my/package', | ||
version: '1.2.3', | ||
format: 'pure', | ||
ref: '1.2.3-my.package' | ||
} | ||
] | ||
] | ||
|
||
cases.forEach(([tag, meta, parseonly]) => { | ||
cases.forEach(([tag, meta]) => { | ||
const parsed = parseTag(tag) | ||
assert.equal(parsed, meta) | ||
|
||
if (meta !== null && !parseonly) { | ||
if (meta !== null) { | ||
assert.is(formatTag(meta), tag) | ||
assert.ok(semver.valid(tag)) | ||
} | ||
}) | ||
}) | ||
|