mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-28 20:52:48 +00:00
* Prepare to renaming master branch to main * Update CONTRIBUTING.md * Update packages/docusaurus-migrate/src/__tests__/__fixtures__/missing_version_website/website/package.json * Update packages/docusaurus-migrate/src/__tests__/__fixtures__/complex_website/website/package.json * Update packages/docusaurus-migrate/src/__tests__/__fixtures__/simple_website/website/package.json * missing master -> main replaces * useless char * For GH Pages org deploy, DEPLOYMENT_BRANCH env is now required * fix versioning page * fix vercel links * update deployment.mdx Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com> Co-authored-by: slorber <lorber.sebastien@gmail.com>
28 lines
735 B
YAML
28 lines
735 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint:
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
- name: Installation
|
|
uses: bahmutov/npm-install@v1
|
|
with:
|
|
install-command: yarn install
|
|
# install-command: yarn install --immutable # Fails if yarn.lock is modified (unfortunately only works for Yarn 2, and --frozen-lockfile is not the same!)
|
|
- name: Check immutable yarn.lock
|
|
run: git diff --exit-code
|
|
- name: Lint
|
|
run: yarn lint:ci
|
|
- name: Prettier Code
|
|
run: yarn prettier:diff
|
|
- name: Prettier Docs
|
|
run: yarn prettier-docs:diff
|