Giter Club home page Giter Club logo

ado-semantic-release's Introduction

Semantic Release Azure DevOps pipeline extensions

Release notes

Generate Release notes based on conventional commits by pipeline step

release-notes task

Azure pipelines (default parameters):

steps:
- task: release-notes@1
  displayName: 'Release notes'

Azure pipelines (all parameters):

steps:
- task: release-notes@1
  displayName: 'Release notes'
  inputs:
    releaseNotesFrom: 1.0.0
    releaseNotesTo: HEAD
    releaseNotesPath: docs/release-notes.md 
    releaseNotesTemplatePath: src/main/resources/release-notes-template.md
    setVersionToGitTag: true
    gitTagPrefix: v
    gitTagSuffix: alpha
    hideSubprocessOutput: true
    workingDirectory:  $(Build.SourcesDirectory)
    normalizeMergeCommit: true

push-git-tag task

Description: Push all git tags or only the latest git tag to the ADO git repository

Precondition:

Git credentials, user name and email should be configured before running this task. See Microsoft docs page for more information.

Example:

steps:
  - checkout: self
    persistCredentials: true
    clean: true
    displayName: "Allow scripts to access the system token"
  - script: |
      git config user.email [email protected]
      git config user.name "ADO Build agent"
    displayName: "Configure git user"

Azure pipelines (default parameters):

steps:
- task: push-git-tag@1
  displayName: 'Push git tag'

Azure pipelines (all parameters):

steps:
- task: push-git-tag@1
  displayName: 'Push git tag'
  inputs:
    publishLatestTagOnly: true
    remoteName: origin
    hideSubprocessOutput: true
    workingDirectory:  $(Build.SourcesDirectory)

update-yaml

Description: Update key:value in the yaml file (e.g. version)

Azure pipelines (minimal allowed parameters):

steps:
- task: update-yaml@1
  displayName: 'Update yaml'
  inputs:
    filename: Chart.yaml
    key: version

Azure pipelines (all parameters):

steps:
- task: update-yaml@1
  displayName: 'Update yaml'
  inputs:
    filename: Chart.yaml
    key: version
    value: 3.2.1 # if omitted will use the latest git tag
    createBackup: true # create a backup of the original file
    hideSubprocessOutput: true
    workingDirectory:  $(Build.SourcesDirectory)

See Conventional Commits for specification.


Icons by Flaticon

ado-semantic-release's People

Contributors

kharkevich avatar

Watchers

 avatar  avatar

Forkers

kewalaka

ado-semantic-release's Issues

Calculating from tag

I think you should calculate the first tag not the last tag when no from tag/sha is given.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.