Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
deploy-to-github-pages
Advanced tools
A Node library that makes deploying a directory on a branch to GitHub pages easy and automatic.
A Node and CLI tool that makes deploying to GitHub pages by branch easy and automatic, best used as part of a CI process.
On master
(or on your specified defaultBranch
or -m
) your directory will be deployed to your GitHub page root similarly to other libraries, such as the wonderful gh-pages
.
On other branches, it'll be deployed under /branch/${branchName}
, allowing your peers to QA your built docs/demos easily for better feedback.
It also sends a status to a Pull request, if one exists:
npm install -D deploy-to-github-pages
deploy-to-github-pages [...options]
const deploy = require('deploy-to-github-pages');
deploy(options).catch(err => {
console.log(err);
});
Option | flag | description | default | env variable | required | required in CI |
---|---|---|---|---|---|---|
directory | -d | directory you wish to deploy | 'public' | * | * | |
token | -t | GitHub token | GITHUB_TOKEN | * | * | |
owner | -o | GitHub repo owner/org | * | |||
repo | -r | GitHub repo name | * | |||
branch | -b | branch name | 'master' | * | ||
buildUrl | -u | link displayed when deployment fails | ||||
defaultBranch | -m | Your GitHub default branch | 'master' |
Therefore, if ran from CircleCI or GitHub Actions workflows with a GITHUB_TOKEN
environment variable present and the directory to be deployed is named public
, no configuration options are needed, so just the following is enough:
deploy-to-github-pages
or
deploy().catch(err => {
console.log(err);
});
yarn test
.package.json
according to semver and add an item that a release will be based on to CHANGELOG.md
.package.json
.For features and bugs, feel free to add issues or contribute.
FAQs
A Node library that makes deploying a directory on a branch to GitHub pages easy and automatic.
The npm package deploy-to-github-pages receives a total of 52 weekly downloads. As such, deploy-to-github-pages popularity was classified as not popular.
We found that deploy-to-github-pages 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.