
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.
auto-stage
Advanced tools
Automatically run your latest code after pushing to GitHub
auto-stage
will run a web server that will listen for GitHub web hooks.
In particular, it will look for a push
to a branch of your choosing.
Once it sees a push
, it will automatically:
git pull {remote} {branch}
npm install
npm start
You will need to setup a GitHub Webhook
.
Go to your repo's Settings
-> Webhooks and services
Ensure:
Content type
is application/json
Payload URL
is correct.port
, the default port is 3000
projectPath
(see below) is a git repository and has git pull
access to the remote codeUse it as a node_module:
npm install auto-stage --save
The module exports a single function which takes two parameters:
projectPath
: a relative or absolute path to your project from your working directory
.options
: A hash which accepts three optional values:port
: The desired port of the web serverremote
: The git remote to use for use in git pull
branch
: The remote branch for use in git pull
const stage = require('auto-stage');
var options = {
port: 8080,
remote: 'origin',
branch: 'staging'
};
stage('/projects/my-app', options);
secret
as provided in the Webhooks
configurationMIT
FAQs
a lightweight github webhook auto-staging script
The npm package auto-stage receives a total of 3 weekly downloads. As such, auto-stage popularity was classified as not popular.
We found that auto-stage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.