Skip to content

Commit

Permalink
add canary prefix, push tags and clean up steps (#3957)
Browse files Browse the repository at this point in the history
* add canary prefix, push tags and clean up steps

* remove uneeded outputs config
  • Loading branch information
mcwinter07 authored Aug 4, 2023
1 parent c8cf8c1 commit e0b8926
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/canary-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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/button@1.0.0-fix-button-focus-20230719002814"'
description: 'Pick a label for the release, to be included in the version number — e.g. "fix-button-focus" will released as "@kaizen/button@0.0.0-canary-fix-button-focus-20230719002814"'
required: true
type: string

Expand All @@ -18,12 +18,17 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Create Release Pull Request or Publish to npm
id: changesets
- name: Set npm token
run: |
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
- run: |
echo "Releasing canary for $LABEL"
- name: Create canary release and publish to npm
id: changesets
run: |
echo "🥚 Building canary-$LABEL"
yarn build
yarn changeset version --snapshot "$LABEL"
yarn changeset publish --tag "$LABEL"
echo "🐣 Releasing canary-$LABEL"
yarn changeset version --snapshot "canary-$LABEL"
yarn changeset publish --tag "canary-$LABEL"
- name: Push tags
run: |
git push --follow-tags

0 comments on commit e0b8926

Please sign in to comment.