chore: update style guide to v0.2.1 and add styleguide page to Storybook #2131
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: CI (Main) | |
on: | |
push: | |
branches: | |
- main | |
concurrency: release_environment | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout [main] | |
with: | |
fetch-depth: 0 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
- run: yarn install --immutable | |
- run: yarn nx format:check | |
- run: yarn nx run-many -t lint | |
- run: yarn nx run-many -t test | |
- run: yarn nx run-many -t build | |
- run: yarn nx run playground:build-storybook:ci | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ETHLETE_SDK }}' | |
channelId: live | |
projectId: ethlete-sdk | |
target: prod | |
- name: Create and publish versions | |
id: changesets | |
uses: TomTomB/changesets-action@v1 | |
with: | |
version: yarn changeset:release | |
commit: 'chore: 🤖 update versions' | |
publish: yarn release | |
title: Release packages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
HUSKY: 0 | |
- name: Post release notes to slack | |
if: steps.changesets.outputs.published == 'true' | |
id: slack | |
uses: slackapi/[email protected] | |
with: | |
channel-id: ${{ secrets.SLACK_CHANNEL_ID }} | |
payload: ${{ steps.changesets.outputs.publishedReleaseNotes }} | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |