1.0.2 • Published 5 years ago

semantic-release-template-plugin v1.0.2

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
5 years ago

Semantic Release Template Plugin

This plugin allows its user to provide a file containing a lodash template, and some data to compile the template with.

The template will always be passed the version.

How to use

Installation

npm install --save-dev semantic-release-template-plugin

Add a template file

echo "hello im a sandwich <%= version %> oh yeah and also <%= abc %>" > foo-text.txt

Adding to your .releaserc

{
  "tagFormat": "${version}",
  "branch": "master",
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    "@semantic-release/github",
    "@semantic-release/git",
    "@semantic-release/npm",
    "semantic-release-template-plugin"
  ],
  "verifyConditions": [
    "@semantic-release/changelog",
    "@semantic-release/github",
    "@semantic-release/git",
    "@semantic-release/npm",
    {
      "path": "semantic-release-template-plugin",
      "msg": "template plugin",
      "documentLocation": "foo-test.txt",
      "templateData": {
        "abc": 123
      }
    }
  ],
  "prepare": [
    "@semantic-release/changelog",
    "@semantic-release/git",
    "@semantic-release/npm",
    {
      "path": "semantic-release-template-plugin",
      "msg": "template plugin",
      "documentLocation": "foo-test.txt",
      "templateData": {
        "abc": 123
      }
    }
  ]
}

Contributing

How to contribute, build and release are outlined in CONTRIBUTING.md, BUILDING.md and RELEASING.md respectively. Commits in this repository follow the CONVENTIONAL_COMMITS.md specification.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago