feat: add docs to stories [MDS-1442] #1003
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: Checks | |
# This action works with pull requests and pushes | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# Make sure the actual branch is checked out when running on pull requests | |
ref: ${{ github.head_ref }} | |
- name: Prettify code | |
uses: creyD/[email protected] | |
with: | |
# This part is also where you can pass other options, for example: | |
prettier_options: --write **/*.{js,ts,jsx,tsx,md,mdx} | |
spellcheck: | |
name: Spellcheck | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: streetsidesoftware/cspell-action@9759be9ad475fe8145f8d2a1bf29a1c4d1c6f18d # v2.7.0 | |
changeset: | |
name: Changeset | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/playwright:v1.40.0-jammy | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# check out full history | |
fetch-depth: 0 | |
- name: Use Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: "https://registry.npmjs.org" | |
- name: Corepack enable | |
run: corepack enable | |
- name: Use [email protected] | |
run: corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: pnpm i | |
- name: Require changeset | |
run: | | |
# Checkout PR head commit instead of merge commit | |
# See: https://github.com/atlassian/changesets/issues/517 | |
git config --global --add safe.directory /__w/moon-light/moon-light | |
git checkout ${{ github.event.pull_request.head.sha }} | |
pnpm changeset status --since=origin/main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |