Skip to content

Commit 141e39d

Browse files
committed
Issue 1056: Build a Docker Image and Upload it as an aftifact
1 parent 55d652f commit 141e39d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Format with Prettier
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize]
7+
8+
jobs:
9+
prettier:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout (full)
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
22+
- name: Install dependencies
23+
run: |
24+
npm ci || npm install
25+
npm install --no-save prettier
26+
27+
- name: Run Prettier (format)
28+
run: npx prettier --write "**/*.{js,jsx,ts,tsx,json,md}"
29+
30+
- name: Commit formatted changes
31+
uses: EndBug/add-and-commit@v9
32+
with:
33+
message: "chore: format code with Prettier"
34+
add: "."

0 commit comments

Comments
 (0)