![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
CLI with some useful commands for Travis CI
It provides:
update-commit-status
command.sui-mono
with release
command.The following environment variables are used:
GITHUB_TOKEN
: GitHub Personal Access Token of the user that will create the commit with the release.Other optional environment variables are:
GITHUB_USER
: GitHub username of the user that will create the commit with the release.GITHUB_EMAIL
: GitHub email of the user that will create the commit with the release.When using Travis as CI it also uses:
TRAVIS_PULL_REQUEST
: The pull request number if the current job is a pull request, false
if it's not a pull request.When using GitHub Actions as CI it also uses:
GITHUB_REF
: The branch ref that triggered the workflow. For example, refs/heads/feature-branch-1.The recommended way to use this is adding in your travis.yml
as latest step of the script
lifecycle the next command npx @s-ui/ci release
:
script:
- npx @s-ui/ci release
The reason why we need to use the script
lifecycle is because is the last step in Travis to determine if a build is failing. You could safely use in next job cycles like after_success
but keep in mind that if the release fails the build won't change.
Right now, it relies on some environment variables:
GITHUB_TOKEN
: GitHub Personal Access Token of the user that will create the status of the commit.SUI_CI_TOPIC
: Environment variable to tell the CI which topic the commit is about. If not defined, you must use the --topic
parameter in order to define the topic that you're talking about.When using Travis as CI, @s-ui/ci uses the next environment variables are expected: TRAVIS_BUILD_WEB_URL
, TRAVIS_COMMIT
, TRAVIS_PULL_REQUEST_SHA
, TRAVIS_REPO_SLUG
.
When using GitHub Actions as CI, it uses:
GITHUB_EVENT_PATH
, GITHUB_SHA
, GITHUB_RUN_ID
, GITHUB_SERVER_URL
.
Usage: sui-ci update-commit-status [options]
Options:
-s, --state <stateKey> State of the commit. Accepted values:"OK", "KO", "RUN" (default: "KO")
-t, --topic <ciTopic> Topic telling what is the commit about. Required if ENV VAR not defined (default: process.env.SUI_CI_TOPIC)
-u, --url <targetUrl> Url where the details link navigates to (default: <travis-build-url>)
-h, --help display help for command
For example, you could use the CLI directly by using npx
with that.
$ npx @s-ui/ci update-commit-status --state OK --topic build
When you use topic
parameter you'll get a default message for each state (success, fail and pending). There's a special list of topics that have their own message to improve readability: lint
, tests
, deploy
, install
, bundle
.
FAQs
> CLI with some useful commands for Travis CI
The npm package @s-ui/ci receives a total of 16 weekly downloads. As such, @s-ui/ci popularity was classified as not popular.
We found that @s-ui/ci demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.