Minor Release #10
Workflow file for this run
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: 'Minor Release' | |
on: | |
workflow_dispatch: | |
jobs: | |
release-minor: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout prerelease/minor | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 # Needed to do a proper push | |
ref: prerelease/minor # This job only works on prerelease/minor | |
- name: Push to master | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GH_RW_TOKEN }} | |
branch: refs/heads/master | |
- name: Checkout master | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 # Needed to do a proper push | |
ref: master # Release job only works on master | |
- uses: Workday/canvas-kit-actions/install@v1 | |
with: | |
node_version: 16.x | |
- uses: Workday/canvas-kit-actions/release@v1 | |
with: | |
gh_token: ${{ secrets.GITHUB_TOKEN }} | |
gh_rw_token: ${{ secrets.GH_RW_TOKEN }} | |
publish_token: ${{ secrets.NPM_CI_PUBLISH_TOKEN }} | |
chromatic_project_token: ${{ secrets.CHROMATIC_APP_CODE }} | |
version: 'minor' | |
- uses: Workday/canvas-kit-actions/report-failure@v1 | |
if: failure() | |
with: | |
slackWebhook: ${{ secrets.SLACK_WEBHOOK }} | |
slackMessage: | | |
Minor Release job failed. Please check error logs. |