LG-3388: Add Sparkle and Return icons (#1860) #1187
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: Version | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Install Dependencies | |
run: yarn | |
- name: Build packages | |
run: yarn build | |
- name: Build typescript | |
run: yarn tsc | |
- name: Build TSDoc | |
run: yarn build:docs | |
- name: Establish Chromatic baseline | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
buildScriptName: 'build-storybook' | |
exitOnceUploaded: true | |
exitZeroOnChanges: true | |
autoAcceptChanges: true | |
- name: Create Release Pull Request | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: yarn changeset version | |
publish: yarn publish:packages | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}' | |
- name: Dispatch to Website repo | |
uses: peter-evans/repository-dispatch@v2 | |
continue-on-error: true | |
with: | |
token: ${{ secrets.DESIGN_REPO_ACCESS_TOKEN }} | |
repository: mongodb/design | |
event-type: release-leafygreen-ui | |
- name: Notify Slack channel of new releases | |
if: steps.changesets.outputs.published == 'true' | |
id: slackbot | |
run: yarn slackbot '${{steps.changesets.outputs.publishedPackages}}' | |
env: | |
SLACK_BOT_TOKEN: '${{secrets.SLACK_BOT_TOKEN}}' |