Origami Frontend Components & Services

Readme: origami-version

origami-version has a support status of "experimental". This means that the component's API may change without notice, and there is no guarantee that the component is ready for production use.

GitHub action to calculate the version to release based on the release labels a pull-request has.

The labels this actions uses are:

Where release:beta may be used alone or in conjunction with any of the other 3 release labels.


To use this action create a job that runs on closed pull requests. Ensure the closed pull request was merged as part of the job. The action outputs VERSION which may be used in other steps of your job.

name: Origami Version Example
    types: [closed] # Merged pull-requests count as closed pull-requests.
    name: Output the version which should be released
    runs-on: ubuntu-latest
    if: github.event.pull_request.merged # Only run on merged pull-requests
      - name: Set up node
        uses: actions/setup-node@v2.1.4
          node-version: '15.x'
          registry-url: 'https://registry.npmjs.org'

      - name: Checkout the project repository
        uses: actions/checkout@v2
          ref: ${{ github.event.pull_request.merge_commit_sha }} # Checkout the merged commit
          fetch-depth: 0

      - name: Find the next version of the project to release
        uses: Financial-Times/origami-version@v1
          github-token: ${{ secrets.ORIGAMI_GITHUB_TOKEN }}

      - name: Error if the next version wasn't found
        if: secrets.ORIGAMI_GITHUB_TOKEN == null
        run: exit 1

      - name: Output Version Found
        run: echo "Version '${{ steps.version.outputs.VERSION }}'" # You could publish to npm here instead, for example


experimental Origami v1 (Bower)
Switch component view

GitHub: origami-version