Compare commits
1 commit
inside-ci_
...
master
Author | SHA1 | Date | |
---|---|---|---|
a79e6cca09 |
2 changed files with 6 additions and 2 deletions
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
Returns true if code is running inside CI, otherwise false.
|
Returns true if code is running inside CI, otherwise false.
|
||||||
|
|
||||||
|
This also works as a drop-in replacement for anyone currently using `is-ci`.
|
||||||
|
|
||||||
|
If your CI is not being detected, feel free to [add an issue for it](https://git.nfp.is/TheThing/inside-ci/issues) or hit me up on [X (formerly Twitter)](https://x.com/TheThing89) or on discord as `thething_89`.
|
||||||
|
|
||||||
# API
|
# API
|
||||||
|
|
||||||
`const inside = require('inside-ci')`
|
`const inside = require('inside-ci')`
|
||||||
|
@ -12,7 +16,7 @@ Returns true if code is running inside CI, otherwise false.
|
||||||
|
|
||||||
Returns error code 0 if inside CI.
|
Returns error code 0 if inside CI.
|
||||||
|
|
||||||
* `in-ci && echo 'running inside CI'`
|
`in-ci && echo 'running inside CI'`
|
||||||
|
|
||||||
## `not-ci`
|
## `not-ci`
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "inside-ci",
|
"name": "inside-ci",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"description": "Quick tool to check if we are inside CI",
|
"description": "Quick tool to check if we are inside CI",
|
||||||
"main": "in.js",
|
"main": "in.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue