This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Merge branch 'main' into KDS-1904/tree-shake #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: Create canary release and publish to npm | |
- 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" |