Skip to content

feat: Add release workflow #1

feat: Add release workflow

feat: Add release workflow #1

Workflow file for this run

name: Release
on:
push:
branches:
- release-test
workflow_dispatch: # Allow manual triggering of this job in case of failures
inputs:
version:
description:
'The version override. Example: "8.1.2". Leave blank if you want conventional commits to
decide which version'
required: false
jobs:
release:
# Only run if:
# - The commit message does not contain `[skip release]`
# - OR the workflow was manually triggered and has a `version` string
if: "!contains(github.event.head_commit.message, '[skip release]') || inputs.version"
runs-on: ubuntu-latest
steps:
## First, we'll checkout the repository. We don't persist credentials because we need a
## Personal Access Token to push on a branch that is protected. See
## https://github.com/cycjimmy/semantic-release-action#basic-usage
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0 # Used for conventional commit ranges
- uses: Workday/canvas-kit-actions/install@v1
with:
node_version: 16.x