Skip to content

Commit d01d199

Browse files
committed
chore: add auto prettier
1 parent 504db33 commit d01d199

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/prettier.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Prettier
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
run:
14+
name: 🤔
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
18+
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
19+
with:
20+
node-version: lts/*
21+
- run: npm ci --ignore-scripts --only-dev
22+
- name: check if workflows needs prettier
23+
run: npx prettier --cache --check ".github/workflows/**/*.yml" || (echo "An action can't make changes to actions, you'll have to run prettier manually" && exit 1)
24+
- run: npx prettier --ignore-path .gitignore --cache --write .
25+
- uses: EndBug/add-and-commit@61a88be553afe4206585b31aa72387c64295d08b # tag=v9
26+
with:
27+
default_author: github_actions
28+
commit: --no-verify
29+
message: 'chore(prettier): 🤖 ✨'

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# gatsby-source-sanity
1+
# gatsby-source-sanity<!-- omit in toc -->
22

33
Gatsby source plugin for pulling data from [Sanity.io](https://www.sanity.io/) into [Gatsby](https://www.gatsbyjs.com) websites. Develop with real-time preview of all content changes. Compatible with `gatsby-plugin-image`. Uses your project's GraphQL schema definitions to avoid accidental missing fields (no dummy-content needed).
44

@@ -9,14 +9,16 @@ Get up and running in minutes with a fully configured starter project:
99

1010
[![Watch a video about the company website built with Gatsby using Sanity.io as a headless CMS](https://cdn.sanity.io/images/3do82whm/production/4f652e6d114e7010aa633b81cbcb97c335980fc8-1920x1080.png?w=500)](https://www.youtube.com/watch?v=STtpXBvJmDA)
1111

12-
## Table of contents
12+
## Table of contents<!-- omit in toc -->
1313

1414
- [Install](#install)
1515
- [Basic usage](#basic-usage)
1616
- [Options](#options)
1717
- [Preview of unpublished content](#preview-of-unpublished-content)
1818
- [GraphQL API](#graphql-api)
1919
- [Using images](#using-images)
20+
- [Using Gatsby's Image CDN (beta)](#using-gatsbys-image-cdn-beta)
21+
- [Using images outside of GraphQL](#using-images-outside-of-graphql)
2022
- [Generating pages](#generating-pages)
2123
- ["Raw" fields](#raw-fields)
2224
- [Portable Text / Block Content](#portable-text--block-content)
@@ -26,6 +28,7 @@ Get up and running in minutes with a fully configured starter project:
2628
- [How this source plugin works](#how-this-source-plugin-works)
2729
- [Credits](#credits)
2830
- [Develop](#develop)
31+
- [Release new version](#release-new-version)
2932

3033
[See the getting started video](https://www.youtube.com/watch?v=qU4lFYp3KiQ)
3134

0 commit comments

Comments
 (0)