This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #520 from apiaryio/honzajavorek/warn-about-stable-tag
Introducing the stable tag
- Loading branch information
Showing
5 changed files
with
38 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -49,6 +49,20 @@ Also mind that CoffeeScript is production dependency (not dev dependency), | |
because it's needed not only for compiling Dredd package before uploading | ||
to npm, but also for running user-provided hooks written in CoffeeScript. | ||
|
||
### Versioning | ||
|
||
Dredd follows [Semantic Versioning][]. To ensure certain stability of Dredd installations (e.g. in CI builds), users can pin their version. They can also use release tags: | ||
|
||
- `npm install dredd` - Installs the latest published version including experimental pre-release versions. | ||
- `npm install dredd@stable` - Skips experimental pre-release versions. Recommended for CI installations. | ||
|
||
When releasing, make sure you respect the tagging: | ||
|
||
- To release pre-release, e.g. `42.1.0-pre.7`, use just `npm publish`. | ||
- To release any other version, e.g. `42.1.0`, use `npm publish && npm dist-tag add [email protected] stable`. | ||
|
||
Hopefully this will be automated one day. | ||
|
||
### Testing | ||
|
||
Use `npm run test` or just `npm test` to run all tests. Use `npm run test:bdd` | ||
|
@@ -127,6 +141,7 @@ There are also some environment variables you could find useful: | |
[Apiary]: https://apiary.io/ | ||
[API Blueprint]: http://apiblueprint.org/ | ||
|
||
[Semantic Versioning]: http://semver.org/ | ||
[coffee-coverage]: https://github.com/benbria/coffee-coverage | ||
[coffeelint]: http://www.coffeelint.org/ | ||
[CoffeeScript]: http://coffeescript.org | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
colors = require('colors') | ||
|
||
command = colors.bold(colors.yellow('npm install dredd@stable')) | ||
console.error(colors.cyan(""" | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
:: :: | ||
:: Install Dredd using #{command} in case you :: | ||
:: prefer stability over new features (e.g. in CI) :: | ||
:: :: | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
""")) |
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