Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Canary release

Canary release #8

name: "Canary release"
on:
workflow_dispatch:
inputs:
label:
description: 'Pick a label for the release, to be included in the version number — e.g. "fix-button-focus" will released as "@kaizen/[email protected]"'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL: ${{ github.event.inputs.label }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- run: |
npm config set "//npm.pkg.github.com/:_authToken" "$GITHUB_TOKEN"
- run: |
git config --global user.email "[email protected]"
git config --global user.name "cultureamp-ci"
- run: |
echo "🥚 Building canary-$LABEL"
yarn build
echo "🐣 Releasing canary-$LABEL"
yarn changeset version --snapshot "canary-$LABEL"
yarn changeset publish --tag "canary-$LABEL"