
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
ember-cli-deploy-sh
Advanced tools
An ember-cli-deploy plugin to run shell commands during deploy.
Supports all will* and did* hooks:
willDeploy
, willBuild
, willPrepare
, willUpload
, willActivate
didBuild
, didPrepare
, didUpload
, didActivate
, didDeploy
, didFail
Each hook takes an array of tasks
config/deploy.js
ENV.sh = {
hooks: {
willDeploy: [ {task} ]
}
};
A task is a shell commands defined in a JS Object.
command
options
This is an example of a task that makes a curl request:
// config/deploy.js
require('dotenv').load(); // ember-cli-deploy v0.6.0x has native support for .env
var querystring = require('querystring');
Env.sh = {
hooks: {
didDeploy: [
{
command: 'curl',
options: {
request: 'POST',
form: ['file=@dist-deploy/index.html', 'version=' + process.env.VERSION,
verbose: true,
url: buildURL('https://api.com/new-release', { pass: process.env.PASSWORD })
}
}
]
}
};
function buildURL(url, options) {
return url + '?' + querystring.stringify(options);
}
FAQs
The default blueprint for ember-cli addons.
The npm package ember-cli-deploy-sh receives a total of 24 weekly downloads. As such, ember-cli-deploy-sh popularity was classified as not popular.
We found that ember-cli-deploy-sh 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.