Skip to content

Commit 1479460

Browse files
committed
chore: update semantic release
1 parent cf8acd4 commit 1479460

File tree

5 files changed

+18545
-8292
lines changed

5 files changed

+18545
-8292
lines changed

.github/workflows/prettier.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Prettier
3+
4+
on:
5+
push:
6+
branches: [main]
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
run:
15+
name: 🤔
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
19+
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
20+
with:
21+
cache: npm
22+
node-version: lts/*
23+
- run: npm ci --ignore-scripts --only-dev
24+
- uses: actions/cache@6998d139ddd3e68c71e9e398d8e40b71a2f39812 # v3
25+
with:
26+
path: node_modules/.cache/prettier/.prettier-cache
27+
key: prettier-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.gitignore') }}
28+
- name: check if workflows needs prettier
29+
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)
30+
- run: npx prettier --ignore-path .gitignore --cache --write .
31+
- uses: EndBug/add-and-commit@61a88be553afe4206585b31aa72387c64295d08b # tag=v9
32+
with:
33+
default_author: github_actions
34+
commit: --no-verify
35+
message: 'chore(prettier): 🤖 ✨'

.releaserc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@sanity/semantic-release-preset",
3+
"branches": ["main"]
4+
}

0 commit comments

Comments
 (0)