Socket
Socket
Sign inDemoInstall

@qiwi/semantic-release-gh-pages-plugin

Package Overview
Dependencies
159
Maintainers
3
Versions
107
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @qiwi/semantic-release-gh-pages-plugin

gh-pages publishing plugin for semantic-release


Version published
Weekly downloads
1.3K
increased by2.05%
Maintainers
3
Install size
9.38 MB
Created
Weekly downloads
 

Changelog

Source

5.2.12 (2024-01-02)

Fixes & improvements

  • fix(deps): update dependency git-url-parse to v14 (acbb41d)

Readme

Source

@qiwi/semantic-release-gh-pages-plugin

CI Test Coverage Maintainability npm (tag)

gh-pages publishing plugin for semantic-release

StepDescription
verifyConditionsVerify the presence of the GH_TOKEN set via environment variables.
publishPushes commit to the documentation branch

Install

# yarn
yarn add @qiwi/semantic-release-gh-pages-plugin --dev
# npm
npm i @qiwi/semantic-release-gh-pages-plugin -D

Usage

Describe plugin configuration in package.json / .releaserc.js

{
  "release": {
    "branch": "master",
    "verifyConditions": [
      "@semantic-release/changelog",
      "@semantic-release/npm",
      "@semantic-release/git",
      "@qiwi/semantic-release-gh-pages-plugin"
    ],
    "publish": [
      "@semantic-release/npm",
      "@semantic-release/github",
      [
        "@qiwi/semantic-release-gh-pages-plugin",
        {
          "msg": "updated",
          "branch": "docs"
        }
      ]
    ]
  }
}

or even shorter if default settings are used:

{
  "release": {
    "branch": "master",
    "plugins": [
      "@semantic-release/release-notes-generator",
      "@semantic-release/changelog",
      "@semantic-release/git",
      "@semantic-release/github",
      "@semantic-release/npm",
      "@qiwi/semantic-release-gh-pages-plugin"
    ]
  }
}

Configuration

Environment variables

VariableDescription
GH_TOKEN or GITHUB_TOKENRequired. The token used to authenticate with GitHub.

Options

OptionDescriptionDefault
msgCommit message templatedocs updated <%= nextRelease.gitTag %>
srcDocumentation directorydocs

NOTE don't forget to run docs builder (yarn docs, yarn typedoc, etc) as a part of your build step or any other way
dstDestination directory. (root)
branchDocs branch to pushgh-pages
branchesOptional list of src-to-target branches association. If defined it suppresses branch option. For example, [['master', 'gh-pages'], ['beta', beta-docs]]undefined
repositoryUrlRepository urlinherited from .git
enterpriseDisables host assertion for GitHub Enterprise domainsfalse
pullTagsBranchTarget branch for tags fetching hook. If '' empty string, skips this actionglobalConfig.branch || master
dotfilesgh-pages dotfiles optionfalse
addgh-pages add optionfalse

License

MIT

Keywords

FAQs

Last updated on 02 Jan 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc